This seems like it should be a pretty simple thing, but I can't figure out how to successfully configure a trigger that would fire if HOST.NAME (which is the name listed in Zabbix) does not match agent.hostname (which is returned by the Zabbix agent).
The goal is to try and find hosts that are configured with the wrong IP address. For example, if SERVERA has an IP address of 192.168.1.19 and SERVERB has an IP address of 192.168.1.100 and both have Zabbix agents installed, Zabbix will happily accept the same IP address for both hosts, meaning the data for one of them is really the data for the the other one.
I've tried things like this with no luck:
{App Zabbix Agent:agent.hostname.str({HOST.NAME},#1)}=1
(Because agent.hostname and HOST.NAME are, of course, strings, doing a comparison doesn't seem to be very easy.)
Any ideas? We're running Zabbix 3.0.
Thanks.
The goal is to try and find hosts that are configured with the wrong IP address. For example, if SERVERA has an IP address of 192.168.1.19 and SERVERB has an IP address of 192.168.1.100 and both have Zabbix agents installed, Zabbix will happily accept the same IP address for both hosts, meaning the data for one of them is really the data for the the other one.
I've tried things like this with no luck:
{App Zabbix Agent:agent.hostname.str({HOST.NAME},#1)}=1
(Because agent.hostname and HOST.NAME are, of course, strings, doing a comparison doesn't seem to be very easy.)
Any ideas? We're running Zabbix 3.0.
Thanks.
Comment