Re: Q: event handlers and scheduled downtime
Anton Löfgren <[email protected]> Thu, 26 Sep 2013 10:04:37 +0200
| Newsgroups | gmane.network.nagios.user |
|---|---|
| Message-ID | <CAHV3CM_i8440yxW4LDuRkT0xBdJxVqM+Wz=489_p59vTC38F8w@mail.gmail.com> |
--===============7168241867747907493== Content-Type: multipart/alternative; boundary=089e0111b0c267637904e744d348 --089e0111b0c267637904e744d348 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Sep 25, 2013 at 7:14 PM, Paul Dubuc <[email protected]> wrote: > Are event handlers run for a service or host that is in a scheduled > downtime? > They are, as far as I can tell. > I can't find any documentation on this. Since downtimes are not explicitly mentioned, I think it's implied in the "Event handlers [...] are run whenever a host or service state change occurs." part of the introduction. I know notifications are > suppressed, though checks still run. I would like the event handler for > one > service not to run during a downtime. Is that possible? > That, I don't know - as I'm sure you already know, the downtime depth ${HOST,SERVICE}DOWNTIME$ is not passed to the event handler, which otherwise would've been a viable solution to the problem. It should be possible to do what you want by using, for example, NDO or livestatus to retrieve more status information about your objects. Or even parsing status.dat. This seems like a pretty roundabout way (read: overkill) of accomplishing what you want, though. I'm sure someone else will chime in to suggest a better way if one exists. --=20 Anton L=F6fgren [email protected] OP5 AB www.op5.com --089e0111b0c267637904e744d348 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On W= ed, Sep 25, 2013 at 7:14 PM, Paul Dubuc <span dir=3D"ltr"><<a href=3D"ma= ilto:[email protected]" target=3D"_blank">[email protected]</a>></sp= an> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-= left:1px solid rgb(204,204,204);padding-left:1ex">Are event handlers run fo= r a service or host that is in a scheduled downtime?<br></blockquote><div> They are, as far as I can tell. <br> </div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left:1px solid rgb(204,204,204);padding-left:1ex"> =A0 I can't find any documentation on this.</blockquote><div>Since down= times are not explicitly mentioned, I think it's implied in the<br><br>= "Event handlers [...] are run whenever a host or service state change = occurs."</div> <div>=A0<br></div><div>part of the introduction.<br><br></div><blockquote c= lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli= d rgb(204,204,204);padding-left:1ex"> =A0I know notifications are<br> suppressed, though checks still run. =A0I would like the event handler for = one<br> service not to run during a downtime. =A0Is that possible?<br></blockquote>= <div>That, I don't know - as I'm sure you already know, the downtim= e depth ${HOST,SERVICE}DOWNTIME$ is not passed to the event handler, which = otherwise would've been a viable solution to the problem.<br> <br></div><div>It should be possible to do what you want by using, for exam= ple, NDO or livestatus to retrieve more status information about your objec= ts. Or even parsing status.dat.<br><br></div><div>This seems like a pretty= roundabout way (read: overkill) of accomplishing what you want, though.<br= > </div><div>=A0I'm sure someone else will chime in to suggest a better w= ay if one exists.<br clear=3D"all"></div></div><br>-- <br><div dir=3D"ltr">= Anton L=F6fgren=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <a href=3D"mailto:alofg= [email protected]" target=3D"_blank">[email protected]</a><br> OP5 AB=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <a= href=3D"http://www.op5.com" target=3D"_blank">www.op5.com</a><br> </div> </div></div> --089e0111b0c267637904e744d348-- --===============7168241867747907493== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk --===============7168241867747907493== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nagios-users mailing list [email protected] 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 --===============7168241867747907493==--