mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user