故障报错:/usr/sbin/fping: [2] No such file or directory,如图所示
1. 定位故障
[root@host-39-108-217-12 ~]
6578:20180614:114003.198 /usr/sbin/fping: [2] No such file or directory
6578:20180614:114004.198 /usr/sbin/fping: [2] No such file or directory
6555:20180614:114042.400 executing housekeeper
6555:20180614:114042.800 housekeeper [deleted 6564 hist/trends, 0 items/triggers, 241 events, 2 problems, 0 sessions, 0 alarms, 0 audit items in 0.398310 sec, idle for 1 hour(s)]
6578:20180614:115003.259 /usr/sbin/fping: [2] No such file or directory
6578:20180614:115004.259 /usr/sbin/fping: [2] No such file or directory
2.故障分析
ICMP ping的check方式,是使用/usr/sbin/fping命令的检测状态,如果zabbix-server服务器上没有安装fping命令的话,则check方式不能发现设备。
3、安装fping
[root@host-39-108-217-12 ~]
[root@host-39-108-217-12 ~]
[root@host-39-108-217-12 ~]
[root@host-39-108-217-12 fping-3.13]
[root@host-39-108-217-12 fping-3.13]
/usr/local/sbin/fping
[root@host-39-108-217-12 ~]
FpingLocation=/usr/local/sbin/fping
[root@host-39-108-217-12 ~]
[root@host-39-108-217-12 ~]
-rwsr-xr-x 1 root root 93488 6月 14 11:50 /usr/local/sbin/fping
重启server端服务
[root@host-39-108-217-12 ~]
[root@host-39-108-217-12 ~]
[root@host-39-108-217-12 ~]
总结:
1.fping相对ping,可以同时ping多个目标并且有多种统计输出格式。
2.fping目前只能通过编译的方式安装。
3.ping必须由root用户执行,如果非root账号执行fping,则会日志报错。