mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-15 17:54:33 +02:00
parent
e693486dae
commit
a124bed5c0
@ -361,6 +361,9 @@ void Service::ProcessCheckResult(const CheckResult::Ptr& cr, const String& autho
|
|||||||
bool in_downtime = IsInDowntime();
|
bool in_downtime = IsInDowntime();
|
||||||
bool send_notification = hardChange && notification_reachable && !in_downtime && !IsAcknowledged();
|
bool send_notification = hardChange && notification_reachable && !in_downtime && !IsAcknowledged();
|
||||||
|
|
||||||
|
if (!old_cr)
|
||||||
|
send_notification = false; /* Don't send notifications for the initial state change */
|
||||||
|
|
||||||
if (old_state == StateOK && old_stateType == StateTypeSoft)
|
if (old_state == StateOK && old_stateType == StateTypeSoft)
|
||||||
send_notification = false; /* Don't send notifications for SOFT-OK -> HARD-OK. */
|
send_notification = false; /* Don't send notifications for SOFT-OK -> HARD-OK. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user