mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6757 from Icinga/bugfix/no-more-notifications-recovery-filtered
Fix that no_more_notifications gets reset when Recovery notifications are filtered away
This commit is contained in:
commit
26f411638f
|
@ -317,6 +317,16 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
|
|||
<< "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '" << GetName() << "': type '"
|
||||
<< NotificationTypeToStringInternal(type) << "' does not match type filter: "
|
||||
<< NotificationFilterToString(GetTypeFilter(), GetTypeFilterMap()) << ".";
|
||||
|
||||
/* Ensure to reset no_more_notifications on Recovery notifications,
|
||||
* even if the admin did not configure them in the filter.
|
||||
*/
|
||||
{
|
||||
ObjectLock olock(this);
|
||||
if (type == NotificationRecovery && GetInterval() <= 0)
|
||||
SetNoMoreNotifications(false);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue