上图是我已经解决了的截图。在百度查询的资料中,说是把zabbix_agentd.conf文件中server监听的主机127.0.0.1去掉,但是我去掉之后问题仍然没有解决,最后在这篇博客上发现:是我防火墙启动了的原因,至于防火墙启动大概是我安装bt的时候脚本中启动了,将防火墙stop之后,问题解决。
查看agentd日志:
[root@VM_0_10_centos src]# tail -f /tmp/zabbix_agentd.log 32170:20191204:164250.030 ************************** 32170:20191204:164250.030 using configuration file: /usr/local/etc/zabbix_agentd.conf 32170:20191204:164250.030 agent #0 started [main process] 32171:20191204:164250.031 agent #1 started [collector] 32172:20191204:164250.031 agent #2 started [listener #1] 32173:20191204:164250.032 agent #3 started [listener #2] 32174:20191204:164250.032 agent #4 started [listener #3] 32175:20191204:164250.032 agent #5 started [active checks #1] 32176:20191204:164250.032 agent #6 started [active checks #2] 32176:20191204:164250.035 active check configuration update from [106.53.73.200:10051] started to fail (cannot connect to [ [106.53.73.200]:10051]: [113] No route to host) # 出现报错 32176:20191204:164950.123 active check configuration update from [106.53.73.200:10051] is working again # 解决之后输出的信息
参考博客: