bee
27-06-2008, 04:57
Hi,
I'm confusing about send correct message on action. Please take a look below real case situation:
Situation:
Most of server comes with redundant powersupply(PS), and i'm using ZABBIX to monitor the status of both PS via SNMP value. Let say psstatus.1 and psstatus.2. Now i would like to monitor both of PS unit and will alert me when one of those unit's != 3
Trigger:
Create trigger like this:
{server1:psstatus.1.last(0)}#3 | {server1:psstatus.2.last(0)}#3
Action:
I'm create an action with message below:
SEVERITY:{TRIGGER.SEVERITY} - Event on {DATE} at {TIME}, {ITEM.NAME} for {HOSTNAME}({IPADDRESS}) has changed to {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
Problem:
When psstatus-1's value changed, message reflect the correct situation/condition. But when psstatus-2's value changed, macro {ITEM.NAME} substitute with psstatus-1. I know, this is a correct behavior of {ITEM.NAME} macro, but is there any way to changing this behavior? So when psstatus-2's value changed, then macro {ITEM.NAME} will substitute with psstatus-2 correctly?
taken from zabbix 1.4 release 012 document:
{TRIGGER.KEY}
Key of first item of the trigger which caused a notification.
{ITEM.NAME}
Name of first item of the trigger which caused a notification.
i believe, at least on my case, if this can be done will much more reduce number of action that need to be create.
1 action for many monitored items?
am i right?
Is there any macro's suggestion for replacing {ITEM.NAME} and {TRIGGER.KEY} with?
Thanks
BEE
I'm confusing about send correct message on action. Please take a look below real case situation:
Situation:
Most of server comes with redundant powersupply(PS), and i'm using ZABBIX to monitor the status of both PS via SNMP value. Let say psstatus.1 and psstatus.2. Now i would like to monitor both of PS unit and will alert me when one of those unit's != 3
Trigger:
Create trigger like this:
{server1:psstatus.1.last(0)}#3 | {server1:psstatus.2.last(0)}#3
Action:
I'm create an action with message below:
SEVERITY:{TRIGGER.SEVERITY} - Event on {DATE} at {TIME}, {ITEM.NAME} for {HOSTNAME}({IPADDRESS}) has changed to {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
Problem:
When psstatus-1's value changed, message reflect the correct situation/condition. But when psstatus-2's value changed, macro {ITEM.NAME} substitute with psstatus-1. I know, this is a correct behavior of {ITEM.NAME} macro, but is there any way to changing this behavior? So when psstatus-2's value changed, then macro {ITEM.NAME} will substitute with psstatus-2 correctly?
taken from zabbix 1.4 release 012 document:
{TRIGGER.KEY}
Key of first item of the trigger which caused a notification.
{ITEM.NAME}
Name of first item of the trigger which caused a notification.
i believe, at least on my case, if this can be done will much more reduce number of action that need to be create.
1 action for many monitored items?
am i right?
Is there any macro's suggestion for replacing {ITEM.NAME} and {TRIGGER.KEY} with?
Thanks
BEE