Zabbix: cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
Zabbix: cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
(1)问题现象:查看日志文件发现大量的日志:cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
[root@localhost zabbix]# pwd
/var/log/zabbix
[root@localhost zabbix]#
[root@localhost zabbix]#
[root@localhost zabbix]# ls
zabbix_agentd.log zabbix_agentd.log-20240922 zabbix_server.log zabbix_server.log-20240922
[root@localhost zabbix]# cat zabbix_server.log
[root@localhost etc]# cat /var/log/zabbix/zabbix_server.log
(2)网上有人说的原因是web界面下的监测>主机的名称与/etc/zabbix/zabbix_agentd.conf的hostname不一致。
[root@localhost etc]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@localhost etc]#
[root@localhost etc]# cat /etc/hostname
localhost.localdomain
[root@localhost etc]#
[root@localhost etc]# cat /etc/zabbix/zabbix_agentd.conf
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=Zabbix server
(3)解决
[root@localhost etc]# cat /etc/hosts
192.168.125.201 Zabbix server
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@localhost etc]#
[root@localhost etc]# cat /etc/hostname
Zabbix server
[root@localhost etc]#
[root@localhost etc]# cat /var/log/zabbix/zabbix_server.log
Server=192.168.125.201
ServerActive=192.168.125.201
Hostname=Zabbix server
[root@localhost zabbix]# ls
zabbix_agentd.log zabbix_agentd.log-20240922 zabbix_server.log zabbix_server.log-20240922
[root@localhost zabbix]#
[root@localhost zabbix]# mv zabbix_server.log zabbix_server.log-20240927cjh
[root@localhost zabbix]# ls
zabbix_agentd.log zabbix_agentd.log-20240922 zabbix_server.log zabbix_server.log-20240922 zabbix_server.log-20240927cjh
[root@localhost zabbix]#
[root@localhost zabbix]#
[root@localhost zabbix]# cat zabbix_server.log
2298:20240927:024039.128 cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
2299:20240927:024044.129 cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
2295:20240927:024049.130 cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
2297:20240927:024054.130 cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
[root@localhost zabbix]#
[root@localhost zabbix]#
[root@localhost zabbix]# reboot
(4)重启服务器后,还是有这样的日志:
[root@Zabbixserver zabbix]# cat zabbix_server.log
2290:20240927:024456.743 cannot send list of active checks to "192.168.125.201": host "Zabbix server" not monitored
[root@Zabbixserver zabbix]#
(5)在web界面上先启用对zabbix的监控吧。
(6)结果
后面再没有这样的日志产生了(cannot send list of active checks to "192.168.125.201": host "Zabbix server" not monitored)。
2、本资源基本为原创,部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
3、本站大部分文章的截图来源实验测试环境,请不要在生产环境中随意模仿,以免带来灾难性后果。
转载请保留出处: www.zh-cjh.com珠海陈坚浩博客 » Zabbix: cannot send list of active checks to "127.0.0.1": host "Zabbix server" not monitored
作者: cjh
手机扫一扫,手机上查看此文章: |
一切源于价值!
其他 模板文件不存在: ./template/plugins/comment/pc/index.htm