-
New Feature Request
-
Resolution: Duplicate
-
Minor
-
None
-
None
A lot of triggers that i use have functions other then "last", and notifications like "Average load is {ITEM.LASTVALUE}" don't make sense when trigger actually uses "avg" function. I can't use {host:key.func(param)}, because if i will change a trigger i might forget to change notifications.
So i've written small and dirty patch that adds this macro. Currently it uses time(NULL) for function evaluation, any suggestions on how i can extract triggers "lastchange" that is usually used for function evaluation are welcome.
I am not experienced in low level programming and i've already put this in production, so any code analysis would be very welcome.
- duplicates
-
ZBXNEXT-3008 add macro {FUNCTION.VALUE<1-9>} to capture i-th function in the trigger expression
- Closed
- is duplicated by
-
ZBXNEXT-1175 MACRO holding the value of the outcome of each expression so it an be used in trigger description
- Closed