View Full Version : Action on discovered hosts
Hi all, how can I include the IP address or hostname of the discovered host in my mail message? Which is the variable?
Thanks
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
No, if I put {IPADDRESS} on the message Zabbix don't replace it with the real value also for {HOSTNAME}.
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
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.