项目作者: vel21ripn

项目描述 :
ICMP ping-daemon for nagios
高级语言: C
项目地址: git://github.com/vel21ripn/icmp_daemon.git
创建时间: 2016-04-28T12:38:16Z
项目社区:https://github.com/vel21ripn/icmp_daemon

开源协议:

下载


icmp_daemon

ICMP ping-daemon and services for nagios (for linux )

The daemon accepts requests to check availability hosts.
Request parameters: host address (ipv4 or ipv6),
checking interval (seconds) and the maximum testing time (seconds).
The first query returns results about first answer from the host and
complete statistics about answers from host for all these queries.
During the time between requests collected statistics on the minimum,
average, and maximum response time, the number of the transmitted and
received packets, the number of state changes.
The number of tested hosts is not limited.

The client is fully compatible by options with check_icmp from nagios_plugins.

For daemon server, you can restrict the list of addresses from which requests are allowed.

Build and Install

  1. make
  2. make install

By default
ping_server install to /usr/local/bin as ping_server
ping_client install to /usr/libexec as check_icmp_daemon

System require

  1. sysctl net.ipv4.ping\_group\_range="X X"
  2. sysctl net.ipv6.ping\_group\_range="X X"

X is numeric group-ID (see “nagios_group=” in nagios.cfg)

nagios service

Example to replace the standard host command “check-host-alive”.

  1. define command {
  2. command_name check_icmps
  3. # ping interval 5 sec, max. testing time 250 sec
  4. command_line /usr/libexec/check_icmp_daemon -b 16 -i 5 -T 250 -w 150,20 -c 1000,60 -H $HOSTADDRESS
  5. }
  6. define host {
  7. host_name host
  8. check_command check_icmps
  9. ....
  10. }