mirror of https://github.com/Icinga/icinga2.git
Added missing state calculation.
This commit is contained in:
parent
57f0dcf460
commit
db05779fde
|
@ -200,6 +200,9 @@ bool Service::IsReachable(void) const
|
|||
return false;
|
||||
}
|
||||
|
||||
if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue