Zabbix uses ICMP ping to monitor network conditions

Brief description:

Zabbix needs to check the loss rate and response time of ping packets when monitoring the network, and the zabbix module also has a modified module named: Template Network ICMP Ping. The monitoring items are as follows:

Insert picture description here

If fping is not installed, the following error will appear in the server or agent log using this module: /usr/sbin/fping: [2] No such file or directory. The solution is to install fping on the server or agent.

fping install

1. Download fping and install from source

[root@HTD-CATIT install]# wget http://www.fping.org/dist/fping-4.0.tar.gz
[root@HTD-CATIT install]# tar xf fping-4.0.tar.gz
[root@HTD-CATIT install]# cd fping-4.0
[root@HTD-CATIT fping-4.0]# ./configure --prefix=/usr/local/fping/
[root@HTD-CATIT fping-4.0]# make && make install

2. Modify fping permissions

[root@HTD-CATIT fping-4.0]# chown root:zabbix /usr/local/fping/sbin/fping
[root@HTD-CATIT fping-4.0]# chmod 4710 /usr/local/fping/sbin/fping

3. Modify the zabbix_server.conf or zabbix_proxy.conf configuration file

[root@HTD-CATIT fping-4.0]# vim /usr/local/zabbix/etc/zabbix_proxy.conf
#把FpingLocation路径修改为刚安装的fping路径。
FpingLocation=/usr/local/fping/sbin/fping
[root@HTD-CATIT fping-4.0]# /etc/init.d/zabbix_proxy restart
Shutting down zabbix_proxy: [  OK  ]
Starting zabbix_proxy:  [  OK  ]

4. Test the fping command

[root@HTD-CATIT fping-4.0]# /usr/local/fping/sbin/fping 192.168.99.99
192.168.10.100 is alive   
####有返回说明配置正确,查看下zabbix服务端或代理端日志报错消失。

Check out the picture effect as follows:

Insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/ichen820/article/details/115169309