PDA

View Full Version : macro {TRIGGER.KEY} for 2nd item, how??


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

bee
01-07-2008, 06:33
I've edited problem in hope that problem will clearly identified.
Any suggestion on this case?
Thanks,
BEE

bee
04-07-2008, 03:37
no answer??:(
any one??:confused:

Developers, any suggestion? advice please? i think it worth to think about.

Thanks,
BEE

Alexei
09-08-2008, 18:38
There is no way to get data for second, third and other items. There are no macros to achieve this yet.