check_ping and dual ip addresses

Matthias Flacke Matthias.Flacke at gmx.de
Mon Jan 26 14:42:43 CET 2009


Christian Schneemann wrote:
> On Monday January 26 2009 09:39:56 am Kevin Zellar wrote:
>> how to use check_ping if there are 2 ip addresses per host?

[snip some definitions for check_ping]

> I hope there is an easier way to do this. 
> Maybe with check_multi?

Although you can do it with check_multi, it's much easier with Andreas' check_icmp:

$ check_icmp -m 1 <IP1> <IP2>

The -m switch determines how many IPs have to be reachable at minimum to 
let the whole host check succeed.

-Matthias

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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