Page 1 of 1

Re: [Nagios-devel] Strange service scheduling

Posted: Thu Apr 02, 2009 3:44 pm
by Guest
------=_Part_523_27167571.1238690655017
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


----- "Ricardo Maraschini" escreveu:
> I will do this patch against development release and send again to
> list.

Follow attached.

-rm
------=_Part_523_27167571.1238690655017
Content-Type: application/octet-stream; name=patch.diff
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=patch.diff

--- checks.c 2009-04-02 13:41:09.000000000 -0300
+++ checks.c 2009-04-02 13:42:26.000000000 -0300
@@ -277,7 +277,7 @@
preferred_time=current_time+((svc->check_intervalcheck_interval*interval_length));

/* make sure we rescheduled the next service check at a valid time */
- get_next_valid_time(preferred_time,&next_valid_time,svc->check_period_ptr);
+ get_next_valid_time(current_time,&next_valid_time,svc->check_period_ptr);

/* the service could not be rescheduled properly - set the next check time for next year, but don't actually reschedule it */
if(time_is_valid==FALSE && next_valid_time==preferred_time){

------=_Part_523_27167571.1238690655017--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]