PDA

View Full Version : Action on discovered hosts


pasqu
15-09-2010, 11:20
Hi all, how can I include the IP address or hostname of the discovered host in my mail message? Which is the variable?

Thanks

badener
15-09-2010, 17:00
Hi,

ip address is {IPADDRESS} and hostname {HOSTNAME} but I am not sure whether hostname will work on discovered hosts (on discovery zabbix should only know a hosts ip address or hostname from dns lookup), {HOSTNAME} is the name you asign to a host in zabbix config

pasqu
17-09-2010, 10:03
No, if I put {IPADDRESS} on the message Zabbix don't replace it with the real value also for {HOSTNAME}.

badener
17-09-2010, 10:57
looking for something else I just noticed that there are specific macros for discovery, check it out at
http://www.zabbix.com/documentation/1.8/manual/config/macros

it seems that there are only few macros that will work on discovery notifications

pasqu
22-09-2010, 13:37
Thanks, and what about if I want in a mail or script the return value of the discovered host through SNMP?
For example I discover by a rule that search for sysname with SNMP v2, there's a way to have the value? I tried with {ITEM.LASTVALUEn} but nothing.

Enrico.