[icinga-checkins] icinga.org: icinga-core/r1.2: core: fix bug where passive host check status updates were not being propagated to event brokers (Ethan Galstad) #1134

git at icinga.org git at icinga.org
Wed Jan 26 14:01:57 CET 2011


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Jan 21 09:09:19 2011 +0100

core: fix bug where passive host check status updates were not being propagated to event brokers (Ethan Galstad) #1134

fixes #1134

---

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

diff --git a/Changelog b/Changelog
index 02cc679..57e9f03 100644
--- a/Changelog
+++ b/Changelog
@@ -28,6 +28,7 @@ FIXES
 * 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
+* core: fix bug where passive host check status updates were not being propagated to event brokers (Ethan Galstad) #1134
 
 * 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 7e67f55..bbe5acf 100644
--- a/base/checks.c
+++ b/base/checks.c
@@ -3991,10 +3991,11 @@ int process_host_check_result_3x(host *hst, int new_state, char *old_plugin_outp
 			schedule_host_check(hst,hst->next_check,CHECK_OPTION_NONE);
 		}
 
-		/* update host status */
-		update_host_status(hst,FALSE);
 	}
 
+	/* update host status - for both active (scheduled) and passive (non-scheduled) hosts */
+	update_host_status(hst,FALSE);
+
 	/* run async checks of all hosts we added above */
 	/* don't run a check if one is already executing or we can get by with a cached state */
 	for(hostlist_item=check_hostlist;hostlist_item!=NULL;hostlist_item=hostlist_item->next){





More information about the icinga-checkins mailing list