cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored

2023-07-29,,

查看错误日志:  /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后面加了个空格,也导致这个问题

关闭SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0
注:
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式 
在lilo或者grub的启动参数中增加:selinux=0,也可以关闭selinux

在命令行输入 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

cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored的相关教程结束。

《cannot send list of active checks to "127.0.0.1": host [Zabbix server] not monitored.doc》

下载本文的Word格式文档,以方便收藏与打印。