mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-15 09:44:31 +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();
|
long attempt = GetCurrentCheckAttempt();
|
||||||
|
|
||||||
if (cr->Get("state") == StateOK) {
|
if (cr->Get("state") == StateOK) {
|
||||||
if (old_state != StateOK && old_stateType == StateTypeHard)
|
if (old_state == StateOK && old_stateType == StateTypeSoft) {
|
||||||
hardChange = true; // hard recovery
|
hardChange = true; // hard recovery
|
||||||
|
|
||||||
if (old_state == StateOK)
|
|
||||||
SetStateType(StateTypeHard);
|
SetStateType(StateTypeHard);
|
||||||
|
}
|
||||||
|
|
||||||
attempt = 1;
|
attempt = 1;
|
||||||
recovery = true;
|
recovery = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user