mirror of https://github.com/Icinga/icinga2.git
Fixed notifications for hard recoveries.
This commit is contained in:
parent
163f0a9f5c
commit
3a74316aab
|
@ -254,11 +254,10 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
|
|||
long attempt = GetCurrentCheckAttempt();
|
||||
|
||||
if (cr->Get("state") == StateOK) {
|
||||
if (old_state != StateOK && old_stateType == StateTypeHard)
|
||||
if (old_state == StateOK && old_stateType == StateTypeSoft) {
|
||||
hardChange = true; // hard recovery
|
||||
|
||||
if (old_state == StateOK)
|
||||
SetStateType(StateTypeHard);
|
||||
}
|
||||
|
||||
attempt = 1;
|
||||
recovery = true;
|
||||
|
|
Loading…
Reference in New Issue