zabbix3.4报错:/usr/sbin/fping: [2] No such file or directory

故障报错:/usr/sbin/fping: [2] No such file or directory,如图所示

这里写图片描述

1.  定位故障
  [root@host-39-108-217-12 ~]# tail  -100f /tmp/zabbix_server.log
  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 ~]# wget http://www.fping.org/dist/fping-3.13.tar.gz
    [root@host-39-108-217-12 ~]# tar axf fping-3.13.tar.gz 
    [root@host-39-108-217-12 ~]# cd fping-3.13
    [root@host-39-108-217-12 fping-3.13]# ./configure && make && make install
    [root@host-39-108-217-12 fping-3.13]# which fping
    /usr/local/sbin/fping

    [root@host-39-108-217-12 ~]# vi /usr/local/zabbix/etc/zabbix_server.conf
    FpingLocation=/usr/local/sbin/fping

    [root@host-39-108-217-12 ~]# chmod u+s /usr/local/sbin/fping 
    [root@host-39-108-217-12 ~]# ll /usr/local/sbin/fping 
    -rwsr-xr-x 1 root root 93488 614 11:50 /usr/local/sbin/fping

    重启server端服务
    [root@host-39-108-217-12 ~]# pkill zabbix
    [root@host-39-108-217-12 ~]# /usr/local/zabbix/sbin/zabbix_server 
    [root@host-39-108-217-12 ~]# /usr/local/zabbix/sbin/zabbix_agentd 

    总结:
    1.fping相对ping,可以同时ping多个目标并且有多种统计输出格式。
    2.fping目前只能通过编译的方式安装。
    3.ping必须由root用户执行,如果非root账号执行fping,则会日志报错。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东城绝神

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值