Giter Club home page Giter Club logo

zabbix-icmp-agent's Introduction

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

zabbix-icmp-agent's People

Contributors

berlevdv avatar gregy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zabbix-icmp-agent's Issues

Graphic is empty

Hi,
i imported the template, copied the "zping" file into /usr/local/bin/, added the template to the host but i can't understand where i have to set the hosts to ping.
i added the macro like that:
image
but the graphic is empty.
image

Someone could help me?
Thanks

Graph error

If the "packet loss" value is negative (e.g. -1 if target host is not reachable), then the graph will show the error:

Y axis value must be greater than Y axis MIN value

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.