首页 > 其他 > 详细

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

时间:2021-04-05 17:24:04      阅读:138      评论:0      收藏:0      [点我收藏+]

技术分享图片

 查看错误日志:  /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

原文:https://www.cnblogs.com/CloudComputing-binbin/p/14618531.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!