host with multiple addresses and check_nrpe

Jon Angliss jon at netdork.net
Sun Nov 2 06:02:16 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 30 Oct 2008 14:27:24 +0100, Daniel López <dani at tydnet.org>
wrote:

>On Thursday 30 October 2008 02:10:16 pm Marc Powell wrote:
>
>>> Does not check_nrpe handle correctly the list of addresses?

>> No, it does not. Most of the standard nagios plugins wouldn't. They
>> expect a single host address.

>ooh, ok. 

>>> How could i handle this?

>> Write a wrapper plugin that accepts multiple host addresses,
>> determines the 'aliveness' of host 1, 2 and 3, runs check_nrpe against
>> the one you're interested in and returns the results, including exit
>> code to nagios?

>Ok, thanks a lot, Mark, it's a solution. I'll have to do that. 

The other option is to have each of the hosts setup individually, and
do the checks against all 3 as normal, but use the check_cluster
plugin to ensure you get a good result from at least one of the hosts.

The alternative, as Marc suggested, is a custom script that takes the
host address you have, splits it, and executes the command until it
gets a good result.

- -- 
Jon Angliss

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32) - GPGshell v3.64

iEYEARECAAYFAkkNNEgACgkQK4PoFPj9H3Or4wCfQchbk0iQosBqCwkRamkr3SID
ey8AoLO5AdKTKX1yx2tu/JvWp5zPq6Ja
=s7ld
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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