[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: core: fix bug with passive host checks being incorrectly sent to event brokers as active checks (Ethan Galstad) #1133

git at icinga.org git at icinga.org
Fri Jan 21 09:50:47 CET 2011


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Jan 21 08:49:47 2011 +0100

core: fix bug with passive host checks being incorrectly sent to event brokers as active checks (Ethan Galstad) #1133

fixes #1133

---

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

diff --git a/Changelog b/Changelog
index d21443e..c7d12c0 100644
--- a/Changelog
+++ b/Changelog
@@ -70,6 +70,7 @@ FIXES
 * core: protect against poorly behaving thread-libraries (Andreas Ericsson) #1080
 * core: fix extraneous alerts for services when host is down (Ton Voon) #1097
 * core: reduce duplication of code for is_contact_member_of_contactgroup (Stephen Gran) #1126
+* core: fix bug with passive host checks being incorrectly sent to event brokers as active checks (Ethan Galstad) #1133
 
 * classic ui: change servicestatus letter color to default black, not grey #946
 * classic ui: fix waste of cpu in status summary (TomTom) #933
diff --git a/base/checks.c b/base/checks.c
index bff01d8..b2bc1f8 100644
--- a/base/checks.c
+++ b/base/checks.c
@@ -3573,7 +3573,7 @@ int handle_async_host_check_result_3x(host *temp_host, check_result *queued_chec
 
 #ifdef USE_EVENT_BROKER
 	/* send data to event broker */
-	broker_host_check(NEBTYPE_HOSTCHECK_PROCESSED,NEBFLAG_NONE,NEBATTR_NONE,temp_host,HOST_CHECK_ACTIVE,temp_host->current_state,temp_host->state_type,start_time_hires,end_time_hires,temp_host->host_check_command,temp_host->latency,temp_host->execution_time,host_check_timeout,queued_check_result->early_timeout,queued_check_result->return_code,NULL,temp_host->plugin_output,temp_host->long_plugin_output,temp_host->perf_data,NULL);
+	broker_host_check(NEBTYPE_HOSTCHECK_PROCESSED,NEBFLAG_NONE,NEBATTR_NONE,temp_host,temp_host->check_type,temp_host->current_state,temp_host->state_type,start_time_hires,end_time_hires,temp_host->host_check_command,temp_host->latency,temp_host->execution_time,host_check_timeout,queued_check_result->early_timeout,queued_check_result->return_code,NULL,temp_host->plugin_output,temp_host->long_plugin_output,temp_host->perf_data,NULL);
 #endif
 
 	return OK;





More information about the icinga-checkins mailing list