[icinga-checkins] icinga.org: icinga2/master: Bugfix for triggered downtimes.

git at icinga.org git at icinga.org
Sat Feb 9 15:22:49 CET 2013


Module: icinga2
Branch: master
Commit: a649a91cdc0ba24b7e56d5a4580ce85c26adca8c
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=a649a91cdc0ba24b7e56d5a4580ce85c26adca8c

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Feb  9 15:22:46 2013 +0100

Bugfix for triggered downtimes.

---

 lib/icinga/service.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp
index a97a184..1a65de6 100644
--- a/lib/icinga/service.cpp
+++ b/lib/icinga/service.cpp
@@ -553,11 +553,11 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
 			if (service)
 				service->SetNextCheck(Utility::GetTime());
 		}
-
-		if (GetState() != StateOK)
-			TriggerDowntimes();
 	}
 
+	if (GetState() != StateOK)
+		TriggerDowntimes();
+
 	if (GetStateType() == StateTypeHard && (old_state != GetState() || old_stateType == StateTypeSoft)) {
 		SetLastHardStateChange(now);
 





More information about the icinga-checkins mailing list