[icinga-checkins] icinga.org: icinga2/master: Disable immediate hard state for first check result

git at icinga.org git at icinga.org
Thu Aug 4 17:28:08 CEST 2016


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Thu Aug  4 16:16:58 2016 +0200

Disable immediate hard state for first check result

fixes #7354

---

 lib/icinga/checkable-check.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp
index 91cddde..a56554f 100644
--- a/lib/icinga/checkable-check.cpp
+++ b/lib/icinga/checkable-check.cpp
@@ -178,7 +178,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
 	std::set<Checkable::Ptr> children = GetChildren();
 
 	if (!old_cr) {
-		SetStateType(StateTypeHard);
+		SetStateType(StateTypeSoft);
 	} else if (IsStateOK(cr->GetState())) {
 		SetStateType(StateTypeHard); // NOT-OK -> HARD OK
 



More information about the icinga-checkins mailing list