03: zabbix报错:active check configuration update from....started to fail

一台新机器添加zabbix_agentd后,配置文件都是对的,启动后发现报错:

root@xxxx:~# tail -f /var/log/zabbix/zabbix_agentd.log
14684:20190904:091617.523 Starting Zabbix Agent [SGH1VBOX09]. Zabbix 2.2.9 (revision 52686).
14684:20190904:091617.523 using configuration file: /etc/zabbix/zabbix_agentd.conf
14685:20190904:091617.524 agent #0 started [collector]
14686:20190904:091617.525 agent #1 started [listener #1]
14687:20190904:091617.525 agent #2 started [listener #2]
14688:20190904:091617.525 agent #3 started [listener #3]
14689:20190904:091617.526 agent #4 started [active checks #1]
14690:20190904:091617.526 agent #5 started [active checks #2]
14689:20190904:091620.526 active check configuration update from [1xx.xx.xx.xx:10051] started to fail (cannot connect to [[1xx.xx.xx.xx]:10051]: [4] Interrupted system call)

首先ping zabbix server 的ip发现是可以ping通的, 之后去zabbix server端也能ping通 agentd 端IP。

但是在server端用zabbix get 命令不能获取到数据。

------------------------------------------------------------------------------------

其实log里面已经很明确的告诉我们,是不能连接到10051端口。 所以使用telnet 命令探测一下端口是否能通

root@xxx:~# telnet 1xx.xx.xx.xx 10051
Trying 1xx.xx.xx.xx...
^C
root@xxx:~# telnet 1xx.xx.xx.xx 80
Trying 1xx.xx.xx.xx...
^C
发现端口根本不通,问题找到就好解决了,首先确认agentd端有没有配置防火墙规则,其次再去看server有没有配置规则。相应的找安全部门人员开通一下就好。

posted @ 2019-09-04 09:33  运维魔法师  阅读(10332)  评论(0编辑  收藏  举报