disable service checks when a host goes down
Andreas Ericsson
ae at op5.se
Fri Nov 11 13:18:33 CET 2005
Marc Powell wrote:
>
>>-----Original Message-----
>>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>>admin at lists.sourceforge.net] On Behalf Of Matt Rae
>>Sent: Thursday, November 10, 2005 6:32 PM
>>To: nagios-users at lists.sourceforge.net
>>Subject: [Nagios-users] disable service checks when a host goes down
>>
>>I'm trying to disable service notifications when a host goes down.
>
> Does
>
>>this have to do with dependencies or notification optoins? Or
>
> something
>
>>else?
>
>
> Nagios will automagically do this if you have a valid host check_command
> specified that returns CRITICAL if the host is down.
>
>
>>I asked in #nagios and apparently this should be what nagios does by
>>default. The suggestion was to check check-host-alive.. but I'm using
>>the supplied check-host-alive.
>
>
> Can you run the host check_command, exactly as it's defined, as the
> nagios user and receive a CRITICAL state ('echo $?' should return '2'
> after running the command) when the host is down?
>
It doesn't matter if it returns 1 or 2. Both are considered DOWN.
> --
> Marc
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> 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
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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