[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: * core: do not update host/ service status during scheduler initialization on startup #1741

git at icinga.org git at icinga.org
Fri Jul 22 19:17:21 CEST 2011


Module: icinga-core
Branch: mfriedrich/core
Commit: 2bd6dcc37b952fc6252138badeca9c86b535cb10
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2bd6dcc37b952fc6252138badeca9c86b535cb10

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Jul 22 18:54:16 2011 +0200

* core: do not update host/service status during scheduler initialization on startup #1741

refs #1741

---

 Changelog     |    1 +
 base/events.c |    8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Changelog b/Changelog
index 4a792a0..9f44a26 100644
--- a/Changelog
+++ b/Changelog
@@ -57,6 +57,7 @@ ENHANCEMENTS
 FIXES
 * core: fix flexible downtime on service hard state change doesn't get triggered/activated #1128
 * core: fix timeperiods daylight saving time problem (Luca Di Stefano) #1370
+* core: do not update host/service status during scheduler initialization on startup #1741
 
 * classic ui: Fixing tooltip's in status.cgi, not showing messages with carriage return #1244
 * classic ui: fixed csv export link to make it XSS save (IE) #1275
diff --git a/base/events.c b/base/events.c
index 633c58f..2bd1390 100644
--- a/base/events.c
+++ b/base/events.c
@@ -403,7 +403,9 @@ void init_timing_loop(void){
 	for(temp_service=service_list;temp_service!=NULL;temp_service=temp_service->next){
 
 		/* update status of all services (scheduled or not) */
-		update_service_status(temp_service,FALSE);
+		/* MF 2011-07-22 this causes a lot of data to be dumped into neb
+		   on startup and may cause IDOUtils to slow down */
+		/* update_service_status(temp_service,FALSE); */
 
 		/* skip most services that shouldn't be scheduled */
 		if(temp_service->should_be_scheduled==FALSE){
@@ -538,7 +540,9 @@ void init_timing_loop(void){
 	for(temp_host=host_list;temp_host!=NULL;temp_host=temp_host->next){
 
 		/* update status of all hosts (scheduled or not) */
-		update_host_status(temp_host,FALSE);
+		/* MF 2011-07-22 this causes a lot of data to be dumped into neb
+		   on startup and may cause IDOUtils to slow down */
+		/* update_host_status(temp_host,FALSE); */
 
 		/* skip most hosts that shouldn't be scheduled */
 		if(temp_host->should_be_scheduled==FALSE){





More information about the icinga-checkins mailing list