mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-01 10:54:32 +02:00
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…
x
Reference in New Issue
Block a user