I needed to create an alert message containing values of multiple items. So I used the idea from this thread: https://www.zabbix.com/forum/showthread.php?t=57337 and it works.
The trigger expression is basically like this:
I only need to send the message when "audiences_failed.last()>0", but I included the other two items so I can reference them in the message.
The items are of type "Zabbix trapper" and they all get populated by zabbix_sender typically once a day.
Everything fine so far, but...
I also need the alert sent every time when the problem is detected. So I enabled the "Multiple problem events generation".
This causes a problem (sic). As my trigger expression references 3 items, it gets evaluated 3 times and 3 messages are sent at once.
Any suggestions for a better solution, that would allow me to:
* send a message whenever audiences_failed.last()>0
* include the values of audiences_total and audiences_list in the message?
The version of Zabbix, if it matters, is 2.4.
Thanks in advance.
The trigger expression is basically like this:
Code:
{MyTemplate:audiences_failed.last()}>0 and {MyTemplate.audiences_total.last()}>0 and {MyTemplate:audiences_list.strlen()}>0
The items are of type "Zabbix trapper" and they all get populated by zabbix_sender typically once a day.
Everything fine so far, but...
I also need the alert sent every time when the problem is detected. So I enabled the "Multiple problem events generation".
This causes a problem (sic). As my trigger expression references 3 items, it gets evaluated 3 times and 3 messages are sent at once.
Any suggestions for a better solution, that would allow me to:
* send a message whenever audiences_failed.last()>0
* include the values of audiences_total and audiences_list in the message?
The version of Zabbix, if it matters, is 2.4.
Thanks in advance.