The previous section was configured with simple check, and now you can use the ICMP ping to monitor the operation of the charging node with simple check.
Zabbix use fping to handle requests for ICMP pings, you need to install fping programs, and after installation, you need to configure fpinglocation installation paths in the parameters fping in zabinx_server.conf.
Because the fping default is the root permission to work, and Zabbix-server is Zabbix user run, so you need to set setuid permissions on the fping program, if you need to use the netstat command in the custom key, also set setuid, Otherwise, you cannot get to the data, and the notification in the log is denied.
If you do not modify permissions, the following permissions will appear.
1 2 |
Fping 10.10.180.25 Fping:can ' t create raw socket (must run as root?): Operation not permitted |
1.fping Installation
1 2 3 4 5 |
[Email protected] ~]# wget http://www.fping.org/dist/fping-3.10.tar.gz [Email protected] ~]# tar zxvf fping-3.10.tar.gz [Email protected] ~]# CD fping-3.10 [Email protected] fping-3.10]#/configure--prefix=/usr/local/fping/ [[email protected] fping-3.10]# make && make install |
2. Modify the zabbix_server.conf configuration file
1 |
[Email protected] fping-3.10]# vim/usr/local/zabbix/etc/zabbix_server.conf |
Modify the Fpinglocation path to the fping path you just installed.
1 |
Fpinglocation=/usr/local/fping/sbin/fping |
If you do not modify the zabbix_server.conf configuration, you need to use a soft connection to the/usr/local/sbin/fping,zabbix default fping path is/usr/sbin/fping
1 2 |
Ln-s/usr/sbin/fping/path/to/non-existant/fping Ln-s/usr/sbin/fping6/path/to/non-existant/fping6 |
1 |
[Email protected]x78 fping-3.10]# service Zabbix_server Restart #重启服务 |
3. Modify Fping Permissions
1 2 |
# chown Root:zabbix/usr/local/fping/sbin/fping # chmod 4710/usr/local/fping/sbin/fping |
4.zabbix User Test fping command
1 2 |
[Email protected] fping-3.10]$/usr/local/fping/sbin/fping 10.10.180.25 10.10.180.25 is Alive # Description command returned successfully. |
5. Add Item
Zabbix-item-icmpping
Type: Select simple Check key: You can click "Select" to select the appropriate key, such as this: "icmpping[10.10.180.25"
6. Add graphs
Zabbix-graph-icmpping
7. View Results
Zabbix-icmping
Zabbix using ICMP pings to determine if a host is alive