mirror of https://github.com/Icinga/icinga2.git
Bugfix for triggered downtimes.
This commit is contained in:
parent
c44ad7b06b
commit
a649a91cdc
|
@ -553,11 +553,11 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
|
||||||
if (service)
|
if (service)
|
||||||
service->SetNextCheck(Utility::GetTime());
|
service->SetNextCheck(Utility::GetTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetState() != StateOK)
|
|
||||||
TriggerDowntimes();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (GetState() != StateOK)
|
||||||
|
TriggerDowntimes();
|
||||||
|
|
||||||
if (GetStateType() == StateTypeHard && (old_state != GetState() || old_stateType == StateTypeSoft)) {
|
if (GetStateType() == StateTypeHard && (old_state != GetState() || old_stateType == StateTypeSoft)) {
|
||||||
SetLastHardStateChange(now);
|
SetLastHardStateChange(now);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue