Added missing state calculation.

This commit is contained in:
Gunnar Beutner 2012-07-03 15:17:42 +02:00
parent 57f0dcf460
commit db05779fde
1 changed files with 4 additions and 1 deletions

View File

@ -200,6 +200,9 @@ bool Service::IsReachable(void) const
return false;
}
if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning)
return false;
else
return true;
}