Zabbix using ICMP pings to determine if a host is alive

Source: Internet
Author: User
Tags pings

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.