health check a large number of hosts by ping (ICMP) so quickly
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.mkdn
monitor-ping

README.mkdn

NAME

monitor-ping - health check a large number of hosts by ping (ICMP)

SYNOPSIS

monitor-ping [ -d ] [ --timeout sec ] [ --max-check-attempt n_time ] [ --alert-interval n_time ] ip_addr ip_addr ...

  $ monitor-ping sv101 sv102 10.10.0.254

DESCRIPTION

health check a large number of hosts by ping (ICMP). We use AnyEvent::FastPing and EV to send/recv ICMP packet asynchronously.

OPTIONS

  • --timeout sec

    specifies monitor loop interval (= timeout for returning ICMP packets) by seconds.

  • --max-check-attempt n_time

    specifies number of times that this script will retry the ping check if it returns any packets.

    Setting this value to 0 will cause to move to DOWN state without retrying.

  • --alert-interval n_time

    specifies number of times to wait before send alert message if host is still DOWN state.

    Setting this value to 0 will cause to send alert every monitoring loop during DOWN state, 3 will send alert every 3 monitoring loop, thus send alert every 3*$timeout seconds.

  • -d

    increase debug level. -d -d more verbosely.

AUTHOR

HIROSE Masaaki

REPOSITORY

http://github.com/hirose31/monitor-ping/tree/master

  git clone git://github.com/hirose31/monitor-ping.git

patches and collaborators are welcome.

SEE ALSO

[[AnyEvent]], [[AnyEvent::FastPing]], [[EV]],

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.