Disabling a host from all checks

Paul Dubuc work at paul.dubuc.org
Wed Jul 3 21:33:25 CEST 2013


Alex wrote:
> Hi,
>
>> I don't know how kosher this is, but I worked around that issue by
>> disabling active checks and disabling notifications, then entering a
>> passive check that showed the host as up.  That way I wouldn't see
>> reports about the downed system until I re-enabled active checks.
>
> Did that work for all services on that host as well? Or was it necessary to
> create a passive check (or even possible) for each service?
>
> Thanks, Alex
>
> ------------------------------------------------------------------------------

It is possible to disable checks or notifications for all services for a 
particular host in one step.  See the Host Commands on the Nagios display for 
the host.

If the services are already in error, you will have to submit a passive check 
result for each service individually to put them back in the OK status with 
the Service Command on the Nagios display for the services.  If you have a lot 
of them, or you do this often ;-) ... you could write a script to submit the 
commands to the external command file:

http://nagios.sourceforge.net/docs/nagioscore/3/en/extcommands.html

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
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