PDA

View Full Version : list of available macros in 1.1beta5


mconigliaro
06-01-2006, 22:13
first of all, i want to say thanks for the new actions system. this is almost exactly what i was proposing in this old thread (http://www.zabbix.com/forum/showthread.php?t=1203).

now i was wondering if someone could post a list of available macros, so that i can produce a message like this:

Device: (name of device)
Trigger: (name of trigger)
Severity: (severity of trigger)
Current Value: (last value recieved)
Key: (item key) <- i have scripts that look for this

mconigliaro
09-01-2006, 16:08
running strings /opt/zabbix/bin/zabbix_server | grep { gave me this list of available macros:


{TRIGGER.NAME}
{HOSTNAME}
{IPADDRESS}
{DATE}
{TIME}
{STATUS}


unfortunately, i dont see a way to grab the current value of the item being monitored. i think we'd need a {KEY} macro (which holds the item key) in order to do something like this:

Last Value: {{HOSTNAME}:{KEY}.last(0)}

then it would be possible to create one action for all triggers!

Alexei
10-01-2006, 17:09
Macro {TRIGGER.KEY} has been implemented. Will be available in 1.1beta6.

mconigliaro
10-01-2006, 21:29
awesome, thanks alexei! any chance we can get a list of macros that you're planning on implementing?

mary nancy
16-03-2006, 19:27
{TRIGGER.KEY} is not working for triggers name