监控服务器的 ping 状态

监控服务器的 ping 状态

我是 zabbix 新手。基本上我想监控服务器的 ping 是否无响应。因此,为了尝试一下,我选择了 www.google.com(103.7.200.87) 来监控 ping 的状态。

但是我的配置给出了这个错误。

get value from agent failed. cannot connect to [[103.7.200.87:10050]:[4] interrupted system call

这是我在日志文件中的内容

2363:20150419:202143.796 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not found
2363:20150419:202343.898 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not found
2368:20150419:202411.730 fping failed: (null): can't create socket (must run as root?) : Permission denied
2376:20150419:202413.581 item "Google:icmpping" became not supported: fping failed: (null): can't create socket (must run as root?) : Permission denied
2376:20150419:202413.581 item "Google:icmppingloss" became not supported: fping failed: (null): can't create socket (must run as root?) : Permission denied
2376:20150419:202413.581 item "Google:icmppingsec" became not supported: fping failed: (null): can't create socket (must run as root?) : Permission denied
2356:20150419:202503.602 Zabbix agent item "system.localtime" on host "Google" failed: another network error, wait for 15 seconds

我应该如何解决该错误以便可以监控 www.google.com 的 ping 状态?

答案1

您收到此错误的原因是 Zabbix 正在尝试寻找 103.7.200.87 上的代理进行连接。

如果您只是想 ping 一个没有代理的服务器,那么您将需要使用一个简单的检查(icmpping)。

https://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes/simple_checks

相关内容