Monitor a host from a Zabbix Agent (ping / ICMP)

Monitoring my Raspberry Pi network behind NAT is easy using OpenVPN and Zabbix agent/server.

In a few cases, I need to monitor hosts without any possibilities to install OpenVPN and Zabbix agent on it (switchs, routers, wemos, arduinos…).

On the Zabbix Agent

On the Zabbix agent on the same subnet, install fping :

sudo apt-get install fping

Then create a new UserParameter :

sudo vi /etc/zabbix/zabbix_agentd.conf.d/icmp.conf 

And add the following :

UserParameter=icmp[*],fping -t 300 $1 | grep alive | wc -l

On the Zabbix Server

Then, on the Zabbix server, create a new Item with a nice flexibility :

Then create an associated trigger :

You’re done. Happy monitoring.

3 thoughts on “Monitor a host from a Zabbix Agent (ping / ICMP)”

  1. Hi, I was just checking out your website and filled out your feedback form. The “contact us” page on your site sends you these messages via email which is the reason you’re reading through my message at this moment correct? This is the most important achievement with any type of online ad, making people actually READ your ad and I did that just now with you! If you have an advertisement you would like to blast out to millions of websites via their contact forms in the U.S. or anywhere in the world send me a quick note now, I can even focus on particular niches and my pricing is super low. Send a reply to:

  2. Attain out to your local rest room contractors in the present day that will help you design the toilet of your dreams. Gloriane Banky Drobman

Leave a Reply

Your email address will not be published. Required fields are marked *