-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
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)