Monitoring client network status with Zabbix ICMP ping templates

Source: Internet
Author: User

Tag: zabbix

Zabbix uses the external command fping to process ICMP ping requests. fping is not included in the zabbix release. You need to download and install the fping program.

After installation, you need to configure the path of fping installation in the parameter FpingLocation in zabinx_server.conf.

Since fping works with root authority by default, and zabbix-server is run by the zabbix user, it is necessary to set the setuid authority for the fping program,

If you need to use the netstat command when customizing the key, you must also set the setuid, otherwise the data cannot be obtained, and the right to refuse is prompted in the log.



First. Log in to the Zabbix server and do the following:

1.fping installation

wget http://www.fping.org/dist/fping-3.10.tar.gz

tar zxvf fping-3.10.tar.gz

cd fping-3.10

./configure --prefix=/usr/local/fping/

make && make install



2. Modify the zabbix_server.conf configuration file

vim /usr/local/zabbix/etc/zabbix_server.conf

Modify the FpingLocation path to the fping path just installed.

FpingLocation=/usr/local/fping/sbin/fping



If you do not modify the zabbix_server.conf configuration file, you need to use a soft connection to /usr/local/sbin/fping, zabbix default fping path is /usr/sbin/fping

ln -s /usr/sbin/fping /path/to/non-existant/fping

ln -s /usr/sbin/fping6 /path/to/non-existant/fping6



service zabbix_server restart #Restart the service



3. Modify the fping permission (if the following permissions are not set, the zabbix server will not collect data)

# chown root:zabbix /usr/local/fping/sbin/fping

# chmod 4710 /usr/local/fping/sbin/fping





4.zabbix user test fping command

/usr/local/fping/sbin/fping www.baidu.com

www.baidu.com is alive # Indicates that the command returned successfully.



Second. Log in to the Zabbix monitoring webpage to do the following settings

1. Open zabbix-configuration-host-creat host to add the ip address to be monitored, and host name to add the ip address to be monitored, as shown:



2. Choose template icmp ping


3. Add Graphs


Third, the effect of the picture is as follows




Fourth, the trigger template has its own, and you can receive alarm emails after setting the alarm mode.

Please refer to http://linuxtech.blog.51cto.com/3670088/1706889 for setting alarm


END


This article is from the "Little Five Car God" blog, please keep this source http://linuxtech.blog.51cto.com/3670088/1737363

Use zabbix's ICMP Ping template to monitor the client's network status


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.