[PATCH] - Schedule (host + all services )downtime via extinfo.cgi

Ton Voon ton.voon at opsera.com
Fri Sep 11 14:43:48 CEST 2009


On 10 Sep 2009, at 22:28, Hendrik Baecker wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am 10.09.09 17:04, schrieb Thomas Guyot-Sionnest:
>>
>> Interesting request, since notifications are suppressed for services
>> when the host is in a downtime. I guess it fixes reporting then, in
>> which case I would suggest we try fixing reporting directly  
>> (detecting
>> scheduled service downtime from the scheduled host downtimes) rather
>> than hack trough it with a new command that generate a flurry of
>> downtimes...
>>
>
> thanks for the note. On the one hand it might prevent miscalculating
> during reports but in my mind it's just easier.
> Currently we're reinstalling many of our systems. The first a system  
> is
> getting back after new OS installation is the IP address and one of  
> the
> last things is the nrpe installation. Most of the reinstall time the
> system is available through the hostcheck but the services aren't.
>
> I'm not sure if service notifications were surpressed if only the host
> is within a downtime... Our operational crew mainly work with "viewing
> the nagios" instead of reading it's notifications and on the CGIs it
> looks a little confusing if the host is up (but in downtime), some
> additional services like snmptrap or "ping" service are OK but other  
> are
> not.
>
> The command itself isn't a new one. SCHEDULE_HOST_SVC_DOWNTIME exists
> already, if we can trust
> http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=122 
> ,
> it exists since nagios epoch ;) , only the possibility to use this
> command within the cmd.cgi via extinfo.cgi would be provided by my  
> patch.

The patch looks reversed?

In Opsview, if someone sets a downtime for the host, we use this  
extcommand to set all the services in downtime too. We can't think of  
a valid reason to not do that, so I agree that it should be available.

Could you add a test to check that CGI has the string re: "set  
downtime for host and all services"? Maybe a test so that submitting  
this command puts the data into the t/rw/nagios.cmd file

I'll then get it applied to CVS.

Ton

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090911/fe8d223b/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list