Hello all,
Hopefully this is a an easy one (I've not managed to find the answer in the documentation / on the forum unfortunately).
I have a trigger which looks at 3 items, creating a notification if any of them "fail". The specific trigger isn't important, for this question anyway.
My question is: is there a macro that can be used to get Zabbix to report (within a notification message) precisely which of the 3 items caused the trigger to fail?
The closest thing I can find within the documentation is:
{HOSTNAME}:{TRIGGER.KEY}.last(#1-9)
The problem with this macro is that I can't see any way of notifying the support team what the exact item (or items) that caused the trigger event in the first place.
As a workaround to this problem, I currently have my notification messages setup as follows:
{ITEM.NAME1} = {ITEM.VALUE1}
{ITEM.NAME2} = {ITEM.VALUE2}
{ITEM.NAME3} = {ITEM.VALUE3}
..etc
- this works, but looks ugly sometimes because each trigger has a different number of items, and where there are only 1/2 items in the trigger, my notification message displays:
*UNKNOWN*
*UNKNOWN*
..for the other item values.
Does anyone on here know if there is a notification macro that records exactly which item(s) within a trigger caused the trigger event? I only want to display the problem item(s) in my notification messages, if possible.
Also, while I remember, there is another question!
If a use a trigger with 11 or more items (I monitor servers with many drive partitions), is there a way of displaying (within a notification message) the values for the extra items? As far as I can tell, the above macro {ITEM.VALUE(1-9)} only permits up to 9 items? This would not be needed as much IF there is a macro to display the exact item that "failed" (see above question).
Thanks for reading this post, and if you have any ideas please share!

Danny.
Hopefully this is a an easy one (I've not managed to find the answer in the documentation / on the forum unfortunately).
I have a trigger which looks at 3 items, creating a notification if any of them "fail". The specific trigger isn't important, for this question anyway.
My question is: is there a macro that can be used to get Zabbix to report (within a notification message) precisely which of the 3 items caused the trigger to fail?
The closest thing I can find within the documentation is:
{HOSTNAME}:{TRIGGER.KEY}.last(#1-9)
The problem with this macro is that I can't see any way of notifying the support team what the exact item (or items) that caused the trigger event in the first place.
As a workaround to this problem, I currently have my notification messages setup as follows:
{ITEM.NAME1} = {ITEM.VALUE1}
{ITEM.NAME2} = {ITEM.VALUE2}
{ITEM.NAME3} = {ITEM.VALUE3}
..etc
- this works, but looks ugly sometimes because each trigger has a different number of items, and where there are only 1/2 items in the trigger, my notification message displays:
*UNKNOWN*
*UNKNOWN*
..for the other item values.
Does anyone on here know if there is a notification macro that records exactly which item(s) within a trigger caused the trigger event? I only want to display the problem item(s) in my notification messages, if possible.
Also, while I remember, there is another question!
If a use a trigger with 11 or more items (I monitor servers with many drive partitions), is there a way of displaying (within a notification message) the values for the extra items? As far as I can tell, the above macro {ITEM.VALUE(1-9)} only permits up to 9 items? This would not be needed as much IF there is a macro to display the exact item that "failed" (see above question).
Thanks for reading this post, and if you have any ideas please share!

Danny.
Comment