Hello,
In my environment I've configured lots of network devices with hostname rather than IP address.
For those items there is a trigger "device down", based on an icmppingsec item, and a trigger "SNMP down", based on another SNMP-based item, which fires when Zabbix is unable to query SNMP.
Today I removed one name from DNS without removing the device from the network: I would expect Zabbix would fire the "device down" trigger but instead the "SNMP down" trigger was fired: later I discovered that the host item related to ICMP become "not supported" with the error "Cannot send ICMP ping packets to this host.", I presume because Zabbix is unable to resolve the name to the IP.
This behaviour seems correct because it's not true that the device is down, simply Zabbix is unable to query it. Even if the host was configured with IP address, I would not have received any alert, so again this is correct.
Only if I removed also the device from the network this configuration will fire a "wrong" trigger (SNMP down instead of Device down).
So I'm asking to the community how do you configure your items, using IP or hostname? Needless to say, I'm a great fan of DNS, so I use it whenever is possible.
Thanks for reply and have a nice day.
In my environment I've configured lots of network devices with hostname rather than IP address.
For those items there is a trigger "device down", based on an icmppingsec item, and a trigger "SNMP down", based on another SNMP-based item, which fires when Zabbix is unable to query SNMP.
Today I removed one name from DNS without removing the device from the network: I would expect Zabbix would fire the "device down" trigger but instead the "SNMP down" trigger was fired: later I discovered that the host item related to ICMP become "not supported" with the error "Cannot send ICMP ping packets to this host.", I presume because Zabbix is unable to resolve the name to the IP.
This behaviour seems correct because it's not true that the device is down, simply Zabbix is unable to query it. Even if the host was configured with IP address, I would not have received any alert, so again this is correct.
Only if I removed also the device from the network this configuration will fire a "wrong" trigger (SNMP down instead of Device down).
So I'm asking to the community how do you configure your items, using IP or hostname? Needless to say, I'm a great fan of DNS, so I use it whenever is possible.
Thanks for reply and have a nice day.