Get value from agent failed cannot connect to

时间 : 19-07-23 栏目 : linux运维 作者 : 老薛 评论 : 0 点击 : 132 次

背景:

Zabbix_server 192.168.15.116

Zabbix_agent 192.168.15.12

Zabbix_server服务端web页面显示zabbix-Get value from agent
failed: cannot connect to [[192.168.15.12]:10050]: [111] Connection refused

分析解决:

ssh 192.168.15.116,然后telnet 192.168.15.12 10050,结果如下

# telnet 192.168.15.12 10050

Trying 192.168.15.12...

telnet: connect to address 192.168.15.12:
No route to host

ping 192.168.15.12

PING 192.168.15.12 (192.168.15.12) 56(84)
bytes of data.

64 bytes from 192.168.15.12: icmp_seq=1
ttl=248 time=22.6 ms

64 bytes from 192.168.15.12: icmp_seq=2
ttl=248 time=22.6 ms

^C

--- 192.168.15.12 ping statistics ---

2 packets transmitted, 2 received, 0%
packet loss, time 1001ms

rtt min/avg/max/mdev =
22.658/22.665/22.672/0.007 ms

ssh 192.168.15.12,接着telnet 192.168.15.116,结果

# telnet 192.168.15.116 10051

Trying 192.168.15.116...

Connected to 192.168.15.116.

Escape character is '^]'.

^]

telnet> Connection closed.

由上面的结果,可以发现server端不可以telnetagent端,agent端可以telnetserver端,怀疑agent上开启了防火墙,接下来我们验证下:

果然,既然找到原因,将防火墙关闭,然后再试。

再次telnet

# telnet 192.168.15.12 10051

Trying 192.168.15.12...

Connected to 192.168.15.116.

Escape character is '^]'.

^]

telnet> Connection closed.

 

问题解决了。

为避免机器下次启动,防火墙启动。需要将防火墙自启动关闭。

检查

好了,问题彻底解决了。

本文标签

除非注明,文章均为( 老薛 )原创,转载请保留链接: http://www.bdkyr.com/xtyw002/2931.html

Get value from agent failed cannot connect to:等您坐沙发呢!

发表评论

9 + 8 = ?


博主微信号,很高兴为您提供帮助

随便看看

为您推荐

0