当前位置: 移动技术网 > 科技>操作系统>Linux > zabbix3.4.8中提示host [4gronghe_110] not found

zabbix3.4.8中提示host [4gronghe_110] not found

2019年08月20日  | 移动技术网科技  | 我要评论

查看zabbix_agentd.log时出现下列错误

[root@4gronghe_110 ~]# tail /var/log/zabbix/zabbix_agentd.log 
1266:20140523:063554.157 no active checks on server [127.0.0.1:10051]: host [4gronghe_110] not found

出现该错误的原因是一般是zabbix_agentd.conf里面的hostname和前端zabbix web里面的配置不一样所造成的,即在zabbix web页面monitoring->configuration->hosts 页面的name和zabbix_agentd.conf里面的hostname要一样。 

解决方法:

1.查看zabbix_agentd.conf文件中的hostname

[root@zabbixsrv ~]# cat /etc/zabbix/zabbix_agentd.conf | grep hostname
### option: hostname
# value is acquired from hostnameitem if undefined.
# hostname=
hostname=4gronghe_110
### option: hostnameitem
# item used for generating hostname if it is undefined. ignored if hostname is defined.
# hostnameitem=system.hostname
# aliases can be used in hostmetadataitem but not in hostnameitem parameters. 

2.在zabbix web页面monitoring->configuration->hosts 页面更改host name和zabbix_agentd.conf里面的hostname一样。 

3.重新启动zabbix-agent服务

[root@zabbix ~]# service zabbix_agent restart
shutting down zabbix agent: [ ok ]
starting zabbix agent: [ ok ]

4.再次查看日志文件

[root@zabbixsrv ~]# tail /var/log/zabbix/zabbix_agentd.log 
1262:20140523:063900.738 got signal [signal:15(sigterm),sender_pid:2615,sender_uid:0,reason:0]. exiting ...
1257:20140523:063900.741 got signal [signal:15(sigterm),sender_pid:2615,sender_uid:0,reason:0]. exiting ...
1257:20140523:063900.762 zabbix agent stopped. zabbix 2.2.3 (revision 44105).
2627:20140523:063900.929 starting zabbix agent [4gronghe_110]. zabbix 2.2.3 (revision 44105).
2627:20140523:063900.929 using configuration file: /etc/zabbix/zabbix_agentd.conf
2628:20140523:063900.941 agent #0 started [collector]
2630:20140523:063900.943 agent #2 started [listener #2]
2629:20140523:063900.944 agent #1 started [listener #1]
2631:20140523:063900.947 agent #3 started [listener #3]
2632:20140523:063900.948 agent #4 started [active checks #1]

问题解决

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网