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)