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