mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-22 22:50:24 +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 false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning)
|
||||||
|
return false;
|
||||||
|
else
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Service::SetNextCheck(time_t nextCheck)
|
void Service::SetNextCheck(time_t nextCheck)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user