
查看錯誤日志: /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
