Re: Q: event handlers and scheduled downtime
Anton Löfgren <[email protected]> Fri, 27 Sep 2013 09:14:23 +0200
| Newsgroups | gmane.network.nagios.user |
|---|---|
| Message-ID | <CAHV3CM8K6s=6hgLS900mCyH-G5tK9dJwOMfiL=JUydHPFA_hCw@mail.gmail.com> |
--===============5643292156049749528== Content-Type: multipart/alternative; boundary=089e01176ad995c55e04e7583d7e --089e01176ad995c55e04e7583d7e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Right! state/type/attempt are only the _minimum_ arguments required. Of coutse you can add the downtime depth yourself. Good on you for not listening to me ;) On Thu, Sep 26, 2013 at 10:52 PM, Paul Dubuc <[email protected]> wrote: > Anton L=EF=BF=BDfgren wrote: > >> On Wed, Sep 25, 2013 at 7:14 PM, Paul Dubuc <[email protected] >> <mailto:[email protected]>> wrote: >> >> ... > >> >> =EF=BF=BDI know notifications are >> >> suppressed, though checks still run. =EF=BF=BDI would like the event= handler >> for one >> service not to run during a downtime. =EF=BF=BDIs 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. >> > > Hmmm. The event handler is just another plugin with a command definition. > I think I CAN pass $HOSTDOWNTIME$ or $SERVICEDOWNTIME$ to it by putting = it > as an arg in the command object. Then code it will do nothing if the hos= t > or service is in downtime. Thanks for the idea! I'll try it. > > Paul Dubuc > --=20 Anton L=C3=B6fgren [email protected] OP5 AB www.op5.com --089e01176ad995c55e04e7583d7e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Right! state/type/attempt are only the _minimum_ arguments= required. Of coutse you can add the downtime depth yourself.<br><br>Good o= n you for not listening to me ;)<br></div><div class=3D"gmail_extra"><br><b= r> <div class=3D"gmail_quote">On Thu, Sep 26, 2013 at 10:52 PM, Paul Dubuc <sp= an dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank"= >[email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_qu= ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex= "> Anton L=EF=BF=BDfgren wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div class=3D"im"> On Wed, Sep 25, 2013 at 7:14 PM, Paul Dubuc <<a href=3D"mailto:work@paul= .dubuc.org" target=3D"_blank">[email protected]</a><br></div> <mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">work@pa= ul.dubuc.org</a>>> wrote:<br> <br> </blockquote> ...<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <br> =C2=A0 =C2=A0 =EF=BF=BDI know notifications are<div class=3D"im"><br> =C2=A0 =C2=A0 suppressed, though checks still run. =EF=BF=BDI would like th= e event handler for one<br> =C2=A0 =C2=A0 service not to run during a downtime. =EF=BF=BDIs that possib= le?<br> <br> That, I don't know - as I'm sure you already know, the downtime dep= th<br> ${HOST,SERVICE}DOWNTIME$ is not passed to the event handler, which otherwis= e<br> would've been a viable solution to the problem.<br> </div></blockquote> <br> Hmmm. The event handler is just another plugin with a command definition. = =C2=A0I think I CAN pass $HOSTDOWNTIME$ or $SERVICEDOWNTIME$ to it by putti= ng it as an arg in the command object. =C2=A0Then code it will do nothing i= f the host or service is in downtime. =C2=A0Thanks for the idea! =C2=A0I= 9;ll try it.<span class=3D"HOEnZb"><font color=3D"#888888"><br> <br> Paul Dubuc<br> </font></span></blockquote></div><br><br clear=3D"all"><br>-- <br><div dir= =3D"ltr">Anton L=C3=B6fgren=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 <a href=3D"mailto:[email protected]" target=3D"_bla= nk">[email protected]</a><br>OP5 AB=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 <a href=3D"http://www.op5.com" target=3D"_blank">www.op5= .com</a><br> </div> </div> --089e01176ad995c55e04e7583d7e-- --===============5643292156049749528== 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 --===============5643292156049749528== 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 --===============5643292156049749528==--