From: Gunnar Beutner Date: Tue, 3 Jul 2012 13:17:42 +0000 (+0200) Subject: Added missing state calculation. X-Git-Tag: v0.0.1~313 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db05779fde0e5ce9f47efaf9055a203746e204b5;p=icinga2 Added missing state calculation. --- diff --git a/cib/service.cpp b/cib/service.cpp index aa5d959fc..9ed5a98b1 100644 --- a/cib/service.cpp +++ b/cib/service.cpp @@ -200,7 +200,10 @@ bool Service::IsReachable(void) const return false; } - return true; + if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning) + return false; + else + return true; } void Service::SetNextCheck(time_t nextCheck)