What you propose sounds acceptable.  In the meantime  I need to be careful about reloading nagios :).  Once I get it in that state, I have to disable use_retained_scheduling_info and then do a full restart.<div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 3:41 AM, Andreas Ericsson <span dir="ltr"><<a href="mailto:ae@op5.se" target="_blank">ae@op5.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 12/14/2012 05:13 AM, Mark Keisler wrote:<br>
> I think I found the issue.  If I happen to send a reload (HUP) to nagios<br>
> while a service check is in progress (fairly easy since my service check is<br>
> rather long lived), the reloaded nagios doesn't seem to know about that<br>
> service check and so I'll end up with another being scheduled as well as<br>
> the original on its schedule.  Create a dummy service check that just<br>
> sleeps for 30 seconds or something and issue a reload while it is running<br>
> and see if your nagios instance will start another sequence of service<br>
> checks.<br>
><br>
<br>
</div>This should be pretty easily fixed by just adding a check reaping event<br>
before initializing the event queue and skipping all checks that have<br>
already been scheduled.<br>
<br>
I'll have to add a check for it in 4.x. Since we keep workers between<br>
reloads, the same thing can easily happen there.<br>
<br>
That means we'll reschedule all checks like normal when we're starting,<br>
but if a check result comes in when a new check is already scheduled,<br>
we'll remove the old event and reschedule a new one according to the<br>
retry interval. I'd suggest doing something similar in the 3.4.x<br>
branch, but I'm not sure I can commit to that one without doing a new<br>
svn clone, and that takes at least a day.<br>
<br>
Mark; Would that be acceptable to you?<br>
<br>
Oh, and good catch :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Andreas Ericsson                   <a href="mailto:andreas.ericsson@op5.se">andreas.ericsson@op5.se</a><br>
OP5 AB                             <a href="http://www.op5.se" target="_blank">www.op5.se</a><br>
Tel: <a href="tel:%2B46%208-230225" value="+468230225">+46 8-230225</a>                  Fax: <a href="tel:%2B46%208-230231" value="+468230231">+46 8-230231</a><br>
<br>
Considering the successes of the wars on alcohol, poverty, drugs and<br>
terror, I think we should give some serious thought to declaring war<br>
on peace.<br>
</font></span></blockquote></div><br></div>