mirror of https://github.com/Icinga/icinga2.git
Bugfixes.
This commit is contained in:
parent
db05779fde
commit
d3b4cc7b0d
|
@ -198,11 +198,12 @@ bool Service::IsReachable(void) const
|
|||
|
||||
if (!it->IsReachable())
|
||||
return false;
|
||||
|
||||
if (it->GetStateType() == StateTypeHard && it->GetState() != StateOK &&
|
||||
it->GetState() != StateWarning)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue