- A+
查看错误日志: /etc/log/zabbix/zabbix_server.log
3148:20210404:233938.363 cannot send list of active checks to "127.0.0.1": host [localhost] not found
not found 错误: web界面下的configuration --> hosts 的name 与 /etc/zabbix/zabbix_agentd.conf 的 hostname 不一致
3148:20210405:022114.412 cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored
not monitored 错误: selinux 未关闭 , selinux 会导致这个问题 , 我因为localhost后面加了个空格,也导致这个问题
在命令行输入 setenforce 0 刷新web页面,即可变为yes
下面这条为成功日志
3143:20210405:022333.350 enabling Zabbix agent checks on host "Zabbix server": host became available
其他配置文件不需改动,默认即可
zabbix.conf.php
zabbix_agentd.conf
server=127.0.0.1
serveractive=127.0.0.1
hostname=Zabbix server
防火墙开 10051 10050 端口
netstat -lnpt | grep zabbix* //查看是否开放端口
本地端口不需要开放的,127.0.0.1是回环地址,本机调用本地,而防火墙端口是外网ip地址的端口开放
zabbix 常见系统报错
https://blog.csdn.net/chongke5244/article/details/100737340