How to ping from Zabbix agent?

rijAth mohAmmed nr picture rijAth mohAmmed nr · May 11, 2016 · Viewed 7.7k times · Source

Is it possible to ping from Zabbix agent and pass that data into Zabbix server? I would like to be able to get response time from the agent.

I read that it is possible by using fping, would be great if someone could guide me to the correct path.

Thank you, Rijath Mohammed

Answer

Richlv picture Richlv · May 11, 2016

While that is not currently available out of the box, you can implement such a functionality using a feature called "user parameters". This forum thread has a simple example:

UserParameter=myping[*],/etc/zabbix/fping -q $1;echo $? 

Although for you the path to fping is likely to be /usr/sbin/fping or /usr/bin/fping.

You can read more about user parameters in the official manual: https://www.zabbix.com/documentation/3.0/manual/config/items/userparameters .

While I haven't ever configured that, it would be similar on Windows - see this forum thread for some inspiration.

And if you would like to see this feature implemented out of the box, make sure to vote on this feature request.