Zabbix无法获取主机的监测数据, zabbix connection reset by peer
2017-09-25 14:41
555 查看
之前配好的测试用Zabbix 数据也都可以正常监控了,周五虚拟机关机回家 周一回来打开再看 结果获取不到数据了,一连蒙蔽。
Zabbix主机那里可用性也还是ZBX绿色的正常,看起来完全没毛病就是没有新数据。
后来又重新在虚拟机弄个一个新环境,再配置相同的agent主机,结果主机状态错误出来了,可用性状态ZBX红色异常。
ZBX_TCP_READ() failed [Connection reset by peer]
百度了半天 也没搞明白咋回事,常识里面的解决方案 都不成,有些情况还都不太一样,因为关机前一切正常。
后来考虑可能是虚拟机的网络原因? 因为看server端ip和之前ifconfig出来的差太多,然后在系统中禁用了ipv6,重启,ip正常了。
可能是因为server和agent端网络地址不在 同一个ip段了。
agent的配置文件和server的配置文件中对应的IP地址再更新一下,重启服务。搞定了。记录一下。
在文档最后添加 blacklist ipv6
保存改动
日志里还有一个cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored 的问题,查了半天结果最后发现没有数据的问题原因不是这玩意儿。
这是自带的一个主机监测示例的破东西,我给停用了但没有删除,没想到日志里还出这个错,扰乱我方向大半天。WTF.
Zabbix主机那里可用性也还是ZBX绿色的正常,看起来完全没毛病就是没有新数据。
后来又重新在虚拟机弄个一个新环境,再配置相同的agent主机,结果主机状态错误出来了,可用性状态ZBX红色异常。
ZBX_TCP_READ() failed [Connection reset by peer]
百度了半天 也没搞明白咋回事,常识里面的解决方案 都不成,有些情况还都不太一样,因为关机前一切正常。
后来考虑可能是虚拟机的网络原因? 因为看server端ip和之前ifconfig出来的差太多,然后在系统中禁用了ipv6,重启,ip正常了。
可能是因为server和agent端网络地址不在 同一个ip段了。
agent的配置文件和server的配置文件中对应的IP地址再更新一下,重启服务。搞定了。记录一下。
修改配置文件blacklist.conf禁用IPV6 (操作要在root用户模式下进行)vi /etc/modprobe.d/blacklist.conf
在文档最后添加 blacklist ipv6
保存改动
日志里还有一个cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not monitored 的问题,查了半天结果最后发现没有数据的问题原因不是这玩意儿。
这是自带的一个主机监测示例的破东西,我给停用了但没有删除,没想到日志里还出这个错,扰乱我方向大半天。WTF.
相关文章推荐
- zabbix使用zabbix_get命令获取key值提示connection reset by peer
- 由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题
- Spark在shuffle数据的时候遇到的问题:java.io.IOException: Connection reset by peer
- 由chmod改系统文件权限引ssh登录报ssh_exchange_identification: read: Connection reset by peer无法登陆问题
- Connection reset by peer: socket write error错误分析
- Connection reset by peer: socket write error错误分析及解决
- Python 频繁请求问题: [Errno 104] Connection reset by peer
- 转--如何解决connection reset by peer(参考使用)
- recv() failed (104: Connection reset by peer) while reading response header from upstream
- 总结解决:java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
- flume kafka sparkstreaming整合后spark executor dead 及集群报错java.io.IOException: Connection reset by peer
- PHP执行Curl时报错提示CURL ERROR: Recv failure: Connection reset by peer
- ssh登录报ssh_exchange_identification: read: Connection reset by peer
- Squid:(104) Connection reset by peer
- Connection reset by peer的常见原因
- 关于connection reset by peer问题
- TNS-12547,Linux Error: 104: Connection reset by peer
- ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
- 从tcp原理角度理解Broken pipe和Connection reset by peer的区别
- Connection reset by peer的常见原因