Internet Detection

Chester R. Hosey Chester.Hosey at gianteagle.com
Tue Aug 16 16:29:50 CEST 2005


On Tue, 2005-08-16 at 07:26 -0700, Miles Scruggs wrote:
> > 
> > Instead, you can use the check_icmp plugin in check_host mode and give 
> > it several hostnames to well-known sites, like so;
> > 
> > ln -s check_icmp check_host
> > time ./check_host www.google.com www.dell.com www.nasa.gov 
> > www.whitehouse.gov OK - www.google.com responds to ICMP. Packet 1, rtt 
> > 48.630ms
> > |pkt=1;0;0;0;5 rta=48.630;2000.000;2000.000;;
> > 
> > real    0m0.170s
> > user    0m0.000s
> > sys     0m0.000s
> > 
> 
> This is fine, but it returns critical if even one of the hosts is down.
> Pretty much pointless for using multiple hosts for internet detection.  I
> want it to return critical only if all hosts are down/unresponsive/slow.
> How would I do this?
> 
> Also I'm not sure what the point of using the time command is either.

I think the time command was to show that the plug-in executes quite
quickly, and will not bog down your monitoring host.

I think someone was talking recently about writing a plug-in which would
check for at least one of a set of hosts being available. Check the
archives from the past week or so.

Chet


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at 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/null





More information about the Users mailing list