mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Added missing state calculation.
This commit is contained in:
parent
57f0dcf460
commit
db05779fde
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user