monitor-ping - health check a large number of hosts by ping (ICMP)
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
health check a large number of hosts by ping (ICMP). We use AnyEvent::FastPing and EV to send/recv ICMP packet asynchronously.
specifies monitor loop interval (= timeout for returning ICMP packets) by seconds.
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.
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.
increase debug level. -d -d more verbosely.
git clone git://github.com/hirose31/monitor-ping.git
patches and collaborators are welcome.
[[AnyEvent]], [[AnyEvent::FastPing]], [[EV]],
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.