I'm using zabbix-2.4.6 on server side and zabbix-2.4.7 on agent side,
and I added below two server names in server's /etc/hosts
122.XXX.XXX.181 CHN-LN-p-9EB
122.XXX.XXX.207 CHN-LN-p-9Eb
but zabbix_server can't get the correct hostname, eg:
[root@zabbix_server ~]# zabbix_get -s CHN-LN-p-9Eb -k agent.hostname
CHN-LN-p-9EB
[root@zabbix_server ~]# zabbix_get -s CHN-LN-p-9Eb -k system.hostname
CHN-LN-p-9EB
however the IP works:
[root@zabbix_server ~]# zabbix_get -s 122.XXX.XXX.207 -k system.hostname
CHN-LN-p-9Eb
[root@zabbix_server ~]# zabbix_get -s 122.XXX.XXX.207 -k agent.hostname
CHN-LN-p-9Eb
both agents are configured "Connect to IP", any ideas now ??
and I added below two server names in server's /etc/hosts
122.XXX.XXX.181 CHN-LN-p-9EB
122.XXX.XXX.207 CHN-LN-p-9Eb
but zabbix_server can't get the correct hostname, eg:
[root@zabbix_server ~]# zabbix_get -s CHN-LN-p-9Eb -k agent.hostname
CHN-LN-p-9EB
[root@zabbix_server ~]# zabbix_get -s CHN-LN-p-9Eb -k system.hostname
CHN-LN-p-9EB
however the IP works:
[root@zabbix_server ~]# zabbix_get -s 122.XXX.XXX.207 -k system.hostname
CHN-LN-p-9Eb
[root@zabbix_server ~]# zabbix_get -s 122.XXX.XXX.207 -k agent.hostname
CHN-LN-p-9Eb
both agents are configured "Connect to IP", any ideas now ??
Comment