Hi,
I am using Zabbix for the first time and have currently configured it with some triggers which have calculated items and Actions have been configured to send mail. Details of triggers and action configured is below and question is how to get the calculated values in the mail.
Trigger :
Trigger 1 : {My_Template:System.Monitor[usersRegisteredTotal].avg(300)} < {My_Template:System.Monitor[usersRegisteredTotal].avg(300,1w)} ----> Value of Registered users now is less than it was last week
Trigger 2 : {My_Template:System.Monitor[failedCalls].avg(600)}>100 --> More than 100 calls failed in last 10 minutes.
Trigger 3 : {My_Template:icmppingsec.avg(5m)}>0.15
Action mail :
Common Action has been configured for all events.
-----
Trigger: {TRIGGER.NAME}
Trigger status: {TRIGGER.STATUS}
Trigger severity: {TRIGGER.SEVERITY}
Trigger URL: {TRIGGER.URL}
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}
Original event ID: {EVENT.ID}
------
The issue is that the when I get the mail, the Item.value always displays the last value but I would like to know the calculated value which caused the trigger like {My_Template:System.Monitor[failedCalls].avg(600)}.
# Is there any way to configure this kind of action message to give the calculated value based on the Triggered event ?
# Is the work around to configure different action for each Trigger (this is going to me messy
) ? If yes, what is syntax to be used to get the calculated value ?
I am using Zabbix for the first time and have currently configured it with some triggers which have calculated items and Actions have been configured to send mail. Details of triggers and action configured is below and question is how to get the calculated values in the mail.
Trigger :
Trigger 1 : {My_Template:System.Monitor[usersRegisteredTotal].avg(300)} < {My_Template:System.Monitor[usersRegisteredTotal].avg(300,1w)} ----> Value of Registered users now is less than it was last week
Trigger 2 : {My_Template:System.Monitor[failedCalls].avg(600)}>100 --> More than 100 calls failed in last 10 minutes.
Trigger 3 : {My_Template:icmppingsec.avg(5m)}>0.15
Action mail :
Common Action has been configured for all events.
-----
Trigger: {TRIGGER.NAME}
Trigger status: {TRIGGER.STATUS}
Trigger severity: {TRIGGER.SEVERITY}
Trigger URL: {TRIGGER.URL}
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}
Original event ID: {EVENT.ID}
------
The issue is that the when I get the mail, the Item.value always displays the last value but I would like to know the calculated value which caused the trigger like {My_Template:System.Monitor[failedCalls].avg(600)}.
# Is there any way to configure this kind of action message to give the calculated value based on the Triggered event ?
# Is the work around to configure different action for each Trigger (this is going to me messy
) ? If yes, what is syntax to be used to get the calculated value ?
Comment