mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Fix that no_more_notifications gets reset when Recovery notifications are filtered away
Hello from the OSMC hackathon :)
This commit is contained in:
parent
ec169de5c4
commit
d082e8c1b1
@ -317,6 +317,16 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
|
|||||||
<< "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '" << GetName() << "': type '"
|
<< "Not sending " << (reminder ? "reminder " : " ") << "notifications for notification object '" << GetName() << "': type '"
|
||||||
<< NotificationTypeToStringInternal(type) << "' does not match type filter: "
|
<< NotificationTypeToStringInternal(type) << "' does not match type filter: "
|
||||||
<< NotificationFilterToString(GetTypeFilter(), GetTypeFilterMap()) << ".";
|
<< 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user