zabbix报错:Get value from agent failed: cannot connect to [[192.168.119.110]:10050]: [111] Connection refused

 

报错信息:Get value from agent failed: cannot connect to [[192.168.119.110]:10050]: [111] Connection refused

wKioL1gAPTSR6vjXAAD-snckIl0604.png

错误分析:Connection refused 拒绝连接!

1)客户端与服务端网络不通;

2)客户端服务内用防火墙阻隔;

3)网段内用物理防火墙阻隔。

解决方法:

1)查看日志:查看、分析错误原因

root@a-desktop:~# tail /var/log/zabbix-agent/zabbix_agentd.log

  5927:20160913:101039.428 agent #2 started [listener #2]

  5923:20160913:102113.808 Got signal [signal:15(SIGTERM),sender_pid:5999,sender_uid:0,reason:0]. Exiting ...

  5923:20160913:102113.810 Zabbix Agent stopped. Zabbix 2.2.2 (revision 42525).

  6004:20160913:102113.824 Starting Zabbix Agent [Cloud_platform002]. Zabbix 2.2.2 (revision 42525).

  6004:20160913:102113.824 using configuration file: /etc/zabbix/zabbix_agentd.conf

  6005:20160913:102113.824 agent #0 started [collector]

  6006:20160913:102113.825 agent #1 started [listener #1]

  6007:20160913:102113.825 agent #2 started [listener #2]

  6008:20160913:102113.825 agent #3 started [listener #3]

  6009:20160913:102113.825 agent #4 started [active checks #1]

2)如果是网络不通,可以做域名解析或者通过zabbix-agent实现数据收集

         zabbix-agent分布式监控可以参考我的另一篇分享《zabbix分布式监控(阿里云zabbix-server,.. indextj.gif

3)如果服务器防火墙

添加规则:iptables -I INPUT -p tcp -m multiport --destination-port 80,10050:10051 -j ACCEPT

4)物理防火墙

同样的也是在墙上开个10050TCP端口