mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
Fix that no_more_notifications gets reset when Recovery notifications are filtered away
Hello from the OSMC hackathon :) (cherry picked from commit d082e8c1b19c88a68e0381db7f5806f31fe8523d)
This commit is contained in:
parent
214874d401
commit
2e2e4ffcec
@ -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…
x
Reference in New Issue
Block a user