Hi!
I'm trying to execute a global script when a trigger comes up.
That script need parameter like trigger name {TRIGGER.NAME} because i need to know what is failing.
The only parameters that can be interpreted are {HOSTxxxx} not TRIGGER, ITEM, or any other macro.
I've thinking to do that with user macro creation {$xxxxx} but those items are discovered by a rule with SNMP and there are a lot of items. So, create a user macro per item could be insane (aprox 2000 items!!!)
Somebody know if i can invoke a macro that returns trigger name?¿?
I'm trying to execute a global script when a trigger comes up.
That script need parameter like trigger name {TRIGGER.NAME} because i need to know what is failing.
The only parameters that can be interpreted are {HOSTxxxx} not TRIGGER, ITEM, or any other macro.
I've thinking to do that with user macro creation {$xxxxx} but those items are discovered by a rule with SNMP and there are a lot of items. So, create a user macro per item could be insane (aprox 2000 items!!!)
Somebody know if i can invoke a macro that returns trigger name?¿?