如何将具有外部IP的主动代理连接到zabbix?
大家下午好,我在活动代理连接到服务器时遇到问题。之前没有问题,但是3台主机出现了问题。 配置代理:
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=
StartAgents=0
ServerActive=zabbix.xxx.com
Hostname=azby
RefreshActiveChecks=120
UnsafeUserParameters=1
但是,它在日志中写入错误:
active check configuration update from [zabbix.xxx.com:10051] started to fail (cannot connect to [[zabbix.xxx.com]:10051]: [111] Connection refused)
也就是说,在 zabbix 界面本身中,我很确定我正确地编写了所有内容。 zabbix.xxx.com 和我的主机之间的 Ping 正在进行。 尝试检查端口:
[root@azby ~]# nc -zv zabbix.xxx.com 10051
nc: connect to zabbix.xxx.com port 10051 (tcp) failed: Connection refused
Connection to zabbix.xxx.com 10051 port [tcp/*] failed : Connection refused
反向也是一样。 zabbix服务器上的selinux和防火墙被禁用。 iptables 中也没有任何内容。 其他 2 台机器上的情况类似,但错误如下:
active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)
我没有在任何地方写 localhost 127.0.0.1 请告诉我,可能是什么问题?
Good afternoon everyone, I have a problem with the active agent connecting to the server. No problems before, but the problem appeared with 3 hosts.
Config agent:
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=
StartAgents=0
ServerActive=zabbix.xxx.com
Hostname=azby
RefreshActiveChecks=120
UnsafeUserParameters=1
However, it writes an error in the logs:
active check configuration update from [zabbix.xxx.com:10051] started to fail (cannot connect to [[zabbix.xxx.com]:10051]: [111] Connection refused)
That said, in the zabbix interface itself, I'm pretty sure I wrote everything correctly.
Pings between zabbix.xxx.com and my host are going on.
Tried checking the ports:
[root@azby ~]# nc -zv zabbix.xxx.com 10051
nc: connect to zabbix.xxx.com port 10051 (tcp) failed: Connection refused
Connection to zabbix.xxx.com 10051 port [tcp/*] failed : Connection refused
And it's the same in reverse direction.
Selinux and firewall on the zabbix server are disabled.
Nothing in iptables either.
The situation is similar on 2 other machines but the error is the following:
active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)
I didn't write localhost 127.0.0.1 anywhere
Please tell me, what may be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论