Hi all,

i've succesfully created a host with multiple addresses like this:

define host{
        use                     server-sistemes
        host_name               Cluster-correu
        alias                   Sun Cluster Correu
        address                 host1,host2,host3
        }

and check_host_alive returns ok if host1 answers. 

This works as expected in http://www.nagios.org/faqs/viewfaq.php?faq_id=146

Now, check_nrpe doesn't take host1 as the $HOSTADDRESS$ 
but "host1,host2,host3".

** FRom faq_id=146 **
Nagios simply passes this address to plugins and external commands via the 
$HOSTADDRESS$ macro. You'll have to make sure that you host check command 
(and possibly service checks, etc.) can understand the format of your host's 
address in order to check it though. 

Does not check_nrpe handle correctly the list of addresses?

What we want to achieve is executing some checks through nrpe in either of 
hosts 1,2 or 3 (whatever that is alive) but not on the three because the 
result will be the same.

How could i handle this?

greetings and thanks in advance,

dani

-------------------------------------------------------------------------
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
[email protected]
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

Reply via email to