[Nagios-devel] [PATCH] Bad service scheduling problem
Posted: Thu May 14, 2009 5:03 pm
------=_Part_12000_11325695.1242324181644
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi,
Attached a patch to solve problem described on
http://markmail.org/message/gb2psbzhxvk ... te:results
-rm
------=_Part_12000_11325695.1242324181644
Content-Type: application/octet-stream; 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){
------=_Part_12000_11325695.1242324181644--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi,
Attached a patch to solve problem described on
http://markmail.org/message/gb2psbzhxvk ... te:results
-rm
------=_Part_12000_11325695.1242324181644
Content-Type: application/octet-stream; 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){
------=_Part_12000_11325695.1242324181644--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]