[icinga-checkins] icinga.org: icinga-core/master: add debug output for invalid scheduled time in timeperiods for servicechecks (thanks Ethan)

git at icinga.org git at icinga.org
Wed Sep 22 15:50:04 CEST 2010


Module: icinga-core
Branch: master
Commit: 14efa92af343caa5ab99c9291d001e7e27afe95a
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=14efa92af343caa5ab99c9291d001e7e27afe95a

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Sep 22 08:34:32 2010 +0200

add debug output for invalid scheduled time in timeperiods for servicechecks (thanks Ethan)

---

 base/events.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/base/events.c b/base/events.c
index f118ab8..8084ce3 100644
--- a/base/events.c
+++ b/base/events.c
@@ -373,6 +373,7 @@ void init_timing_loop(void){
 			/* make sure the service can actually be scheduled when we want */
 			is_valid_time=check_time_against_period(temp_service->next_check,temp_service->check_period_ptr);
 			if(is_valid_time==ERROR){
+				log_debug_info(DEBUGL_EVENTS,2,"Preferred Time is Invalid In Timeperiod '%s': %lu --> %s",temp_service->check_period_ptr->name,(unsigned long)temp_service->next_check,ctime(&temp_service->next_check));
 				get_next_valid_time(temp_service->next_check,&next_valid_time,temp_service->check_period_ptr);
 				temp_service->next_check=next_valid_time;
 			        }





More information about the icinga-checkins mailing list