Disabling checks in Nagios

Tedman Eng teng at dataway.com
Tue Dec 9 06:00:45 CET 2003


One way is to use one of the external command scripts
(see here http://www.nagios.org/download/extras.php#misc)
and edit the script to use DISABLE_SVC_CHECK and ENABLE_SVC_CHECK.
Scheduling can easily be done using an external scheduler like cron or at,
depending on your needs.
Info about the format of external commands can be found here:
http://nagios.sourceforge.net/docs/1_0/extcommands.html

For example:
# echo "disable_svc_chk.sh foobar ping" | at 0300
job 6 at 2003-12-16 03:00
# echo "enable_svc_chk.sh foobar ping" | at 0330
job 7 at 2003-12-16 03:30

There may exist a script to do such a thing already somewhere, but if there
is, they forgot to tell me.  :)

HTH
-Tedman

"Anurag Gupta" <agupta at yahoo-inc.com> wrote in message
news:FJEHIPBACBJHHEAGEJCPAEGKEFAA.agupta at yahoo-inc.com...
> Hi,
>
> Is there an option in Nagios to *schedule* disabling of checks?
>
> Currently, we have Event Handlers that try to restart the processes on
> remote machines. We want these handlers disabled during a Scheduled
> downtime. But scheduled downtime is only for suppressing notifications.
> Checks do happen, and event handlers are invoked.
>
> thanks
> ======================
> Regards
> Anurag Gupta
> agupta at yahoo-inc.com
> 408.349.5166
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> 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
>




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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