-
Change Request
-
Resolution: Duplicate
-
Minor
-
None
-
3.0.0alpha3
We currently have macros like {ITEM.VALUE<1-9>} and {TRIGGER.VALUE}, which can be used in notifications to report the values of items and the whole trigger. For instance, the action message that comes with Zabbix by default contains the following fragment:
Item values: 1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1} 2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2} 3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}
This is very convenient and it suits a wide variety of triggers with at most three items.
It would be nice to support macros {FUNCTION.VALUE<1-9>}, which would return the value of the i-th function in the trigger expression:
{host:item.avg(5m)} > 1000 or {host:item.nodata(3m)} = 1
Here, {FUNCTION.VALUE} and {FUNCTION.VALUE1} would expand to the result of avg(5m) function and {FUNCTION.VALUE2} would expand to the result of nodata(3m) function, which would allows us to understand the condition that triggered the problem.
- causes
-
ZBXNEXT-6954 New macros for debugging trigger expressions
- Closed
- is duplicated by
-
ZBXNEXT-1473 Add new macro {FUNCTION.LASTVALUE}
- Closed
-
ZBXNEXT-4629 Macro to expand at the Nth value of a trigger expression (not item value)
- Closed
-
ZBX-17340 Zabbix Trigger item value is incorrect on problem state
- Closed