<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 25, 2013 at 7:14 PM, Paul Dubuc <span dir="ltr"><<a href="mailto:work@paul.dubuc.org" target="_blank">work@paul.dubuc.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Are event handlers run for 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="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  I can't find any documentation on this.</blockquote><div>Since downtimes 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> <br></div><div>part of the introduction.<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  I know notifications are<br>
suppressed, though checks still run.  I would like the event handler for one<br>
service not to run during a downtime.  Is that possible?<br></blockquote><div>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.<br>

<br></div><div>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.<br><br></div><div>This seems like a pretty roundabout way (read: overkill) of accomplishing what you want, though.<br>

</div><div> I'm sure someone else will chime in to suggest a better way if one exists.<br clear="all"></div></div><br>-- <br><div dir="ltr">Anton Löfgren             <a href="mailto:alofgren@op5.com" target="_blank">alofgren@op5.com</a><br>

OP5 AB                       <a href="http://www.op5.com" target="_blank">www.op5.com</a><br>
</div>
</div></div>