|
|||||||||||
|
Re: [Nagios-users] check_ping vs check_icmp?
From: Marc Powell <marc(at)ena.com>
Date: Mon Jul 30 2007 - 14:22:49 EDT > -----Original Message----- check_ping is a wrapper for /bin/ping and so depends on that program to actually perform the check, parsing it's output to determine success or not. check_icmp performs the check itself. check_icmp is much more efficient than check_ping, typically completing in fractions of a second for 10 pings. Here's a graphic example, 50 pings, 49 seconds for check_ping v.s. 1.2 seconds for check_icmp -- $ time ./check_ping -n 50 -H www.ena.com -w500,50% -c 1000,100% PING OK - Packet loss = 0%, RTA = 1.78 ms
real 0m49.197s
time ./check_icmp -n 50 -H www.ena.com -w500,50% -c 1000,100% OK - www.ena.com: rta 0.40 ms, lost 0%|rta=0.40ms;500;1000;; pl=0%;50;100;; real 0m1.229s user 0m0.530s sys 0m0.700s -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/nullReceived on Mon Jul 30 14:23:18 2007 This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:49:16 EDT |
||||||||||
|
|||||||||||