andy27367451 发表于 2019-1-19 13:36:08

zabbix报错: cannot connect to [[192.168.119.110]:10050]: [111] Connection refused

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

报错信息:Get value from agent failed: cannot connect to [:10050]: Connection refused
http://s3.运维网.com/wyfs02/M00/88/E6/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
5923:20160913:102113.808 Got signal . Exiting ...
5923:20160913:102113.810 Zabbix Agent stopped. Zabbix 2.2.2 (revision 42525).
6004:20160913:102113.824 Starting Zabbix Agent . 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
6006:20160913:102113.825 agent #1 started
6007:20160913:102113.825 agent #2 started
6008:20160913:102113.825 agent #3 started
6009:20160913:102113.825 agent #4 started
(2)如果是网络不通,可以做域名解析或者通过zabbix-agent实现数据收集
         zabbix-agent分布式监控可以参考我的另一篇分享《zabbix分布式监控(阿里云zabbix-server,.. http://blog.运维网.com/image/skin/42/indextj.gif》
(3)如果服务器防火墙
添加规则:iptables -I INPUT -p tcp -m multiport --destination-port 80,10050:10051 -j ACCEPT
(4)物理防火墙
同样的也是在墙上开个10050的TCP端口
  




页: [1]
查看完整版本: zabbix报错: cannot connect to [[192.168.119.110]:10050]: [111] Connection refused