disable event handlers during scheduled downtime

Marc Powell marc at ena.com
Thu Jun 26 14:30:48 CEST 2008


On Jun 25, 2008, at 10:28 PM, charlycr74 at yahoo.com.ar wrote:

> Hi,
>
> I set up Nagios with event handlers to restart an application in  
> case it fails, when I have to do a maintenance of it, I schedule  
> downtime, but when I start working on the maintenance, Nagios  
> restarts it and does not let me work, so, what I'm doing now, is  
> stopping Nagios, but I know that it is not the best solution.
>
>
> I can disable the event handler every time that I have maintenace  
> window, but I have around 100 services on it and to disable one by  
> one takes forever.
>
> Someone knows if there is any other possibility to do disable event  
> handlers during schedule downtime?

Looks like you can pass this variable to your event handler and exit  
if it's > 0.

http://nagios.sourceforge.net/docs/3_0/macrolist.html

$SERVICEDOWNTIME$ 	A number indicating the current "downtime depth"  
for the service. If this service is currently in a period of scheduled  
downtime, the value will be greater than zero. If the service is not  
currently in a period of downtime, this value will be zero.

--
Marc

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.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