Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-9229

Extend Expression macro to allow evaluation of {FUNCTION.VALUE} macros

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 7.2.0beta1
    • None
    • Server (S)
    • Prev.Sprint, S24-W30/31, S24-W34/35, S24-W36/37, S24-W42/43, S24-W44/45
    • 4

      Extend Expression macro to allow evaluation of FUNCTION.VALUE macros within it.

      Use case: I want the Trigger Event name to include the result of a calculation done within the trigger expression.

      Currently, I can do this with an expression macro, but I have to repeat the exact same expression as used in the trigger expression. This violates the "Don't Repeat Yourself" principle and means I have to remember to update in 2 places. It also makes the Event name "just nasty".

      Desired event name:

      CPU: High utilization (over {$CPU.UTIL.CRIT}% for {$CPU.UTIL.CRIT.DURATION} and {?{FUNCTION.VALUE2} - {FUNCTION.VALUE3}}% greater than average based on the past 4 weeks)
      

      Required event name:

      CPU: High utilization (over {$CPU.UTIL.CRIT}% for {$CPU.UTIL.CRIT.DURATION} and {?avg(/Template Module Linux CPU by Zabbix agent active/system.cpu.util,1h:now)-baselinewma(/Template Module Linux CPU by Zabbix agent active/system.cpu.util,3h:now+1h/h,"w",4)}% greater than average based on the past 4 weeks)
      

            askolmeisters Armands Arseniuss Skolmeisters
            Matthew.Steeves2 Matthew Steeves
            Team B
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 81h 10m
                81h 10m