[icinga-checkins] icinga.org: icinga-core/r1.2: 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
Wed Jan 26 14:01:56 CET 2011


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

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 30ff7e0..02cc679 100644
--- a/Changelog
+++ b/Changelog
@@ -27,6 +27,7 @@ FIXES
 * core: fix possible validation error with empty hostgroups/servicegroups (Sven-Göran Bergh) #1040
 * core: fix allocate memory once for *GROUPMEMBERS macros (Stephane Lapie) #1076
 * core: fix extraneous alerts for services when host is down (Ton Voon) #1097
+* 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 270728a..7e67f55 100644
--- a/base/checks.c
+++ b/base/checks.c
@@ -3568,7 +3568,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