如何将具有外部IP的主动代理连接到zabbix?

发布于 2025-01-11 11:42:33 字数 1084 浏览 0 评论 0原文

大家下午好,我在活动代理连接到服务器时遇到问题。之前没有问题,但是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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文