Back
Featured image of post Monitor a host from a Zabbix Agent (ping / ICMP)

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

Monitor an external IP device by using ICMP request from a zabbix agent.

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

Ping monitoring
Ping monitoring

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 :

Timeout=30
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 :

ICMP on zabbix agent
ICMP on zabbix agent

ICMP item
ICMP item

Then create an associated trigger :

ICMP trigger
ICMP trigger

You’re done. Happy monitoring.

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy