Page 1 of 1

[Nagios-devel] Bad service scheduling problem - not reviewed.

Posted: Sun May 17, 2009 4:47 pm
by Guest
This is a multi-part message in MIME format.
--------------060305020306080603060107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


Why was not the patch sent by Ricardo reviewed ?

I fixes this problem
http://markmail.org/message/gb2psbzhxvk ... te:results

Tks.

--------------060305020306080603060107
Content-Type: text/plain;
name="badscheduling.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="badscheduling.diff"

diff --git a/base/checks.c b/base/checks.c
index 9d5c497..ef50a20 100644
--- a/base/checks.c
+++ b/base/checks.c
@@ -277,7 +277,7 @@ int run_scheduled_service_check(service *svc, int check_options, double latency)
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){
@@ -2792,7 +2792,7 @@ int run_scheduled_host_check_3x(host *hst, int check_options, double latency){
preferred_time=current_time+((hst->check_intervalcheck_interval*interval_length));

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

/* the host 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){

--------------060305020306080603060107--





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