首页 > 其他分享 >zabbix: failed to accept an incoming connection

zabbix: failed to accept an incoming connection

时间:2023-01-01 15:22:56浏览次数:40  
标签:incoming connection accept failed zabbix agent

在日常维护监控zabbix的时候

发现agent监控日志出现了问题:

 failed to accept an incoming connection: connection from "89.248.165.41" rejected, allowed hosts: "127.0.0.1" 

原因:

这个问题是因为部署的时候默认,没有配置导致的

 

只需要修改下agent的配置项就可以了

默认是这个路径,如果你不是的话就要用

find / -name /zabbix_agentd.conf  查找下路径

# vim etc/zabbix/zabbix_agentd.conf
复制代码
Server=你的服务器地址

ServerActive=你的服务器地址

Hostname=你的客户端名称

default端口是10050
复制代码

最后重启

systemctl restart zabbix-agent

就可以了。

标签:incoming,connection,accept,failed,zabbix,agent
From: https://www.cnblogs.com/A121/p/17018105.html

相关文章