Skip to content

Zabbix template and accompanying scripts for icmp monitoring done by agent.

License

Notifications You must be signed in to change notification settings

Gregy/zabbix-icmp-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zabbix-icmp-agent

Zabbix template and accompanying scripts for icmp monitoring done by agent. Allows multiple ping targets from single host and automatically generates items, triggers and graphs based on target list. Monitors max,avg,min rtt and loss. You can specify number of packets, interval and custom description.

Installation

Agent

Copy zaping shell script over to a machine with zabbix agent. Modify zabbix agent config as shown in zaping.conf. Restart zabbix agent.

Server

  1. Import the template for your zabbix version.
  2. If you are running zabbix older than 5 copy zabbix-icmp-lld to external scripts directory on your zabbix server. The template for zabbix 5 does not require the helper script anymore.

How does it work

This template bypasses zabbix limitation of only allowing one template link per host by misusing low level discovery. To use it you have to link the template with a host and then define a special macro {$PINGTARGETS} on the host. This macro's contents is fed to the zabbix-icmp-lld script which returns LLD JSON. Zabbix generates items, triggers and graphs based on this data.

Format of PINGTARGETS macro is ; separated list of targets with some other information about them:

<target dns/ip> <pingcount> <pinginterval> <pingdesc>; <target dns/ip> <pingcount> <pinginterval> <pingdesc>; <target dns/ip> <pingcount> <pinginterval> <pingdesc>

without the angle brackets, just separate the values by space

About

Zabbix template and accompanying scripts for icmp monitoring done by agent.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages