-
Notifications
You must be signed in to change notification settings - Fork 601
Closed
Copy link
Labels
area/notificationsNotification eventsNotification eventsbugSomething isn't workingSomething isn't workingref/IP
Description
One can configure types = [Recovery] in both User and Notification objects. For User objects, there is special handling for this scenario to send recovery notifications regardless of whether a problem notification was sent:
icinga2/lib/icinga/notification.cpp
Lines 431 to 439 in d894792
| /* on recovery, check if user was notified before */ | |
| if (type == NotificationRecovery) { | |
| if (!notifiedProblemUsers->Contains(userName) && (NotificationProblem & user->GetTypeFilter())) { | |
| Log(LogNotice, "Notification") | |
| << "Notification object '" << notificationName << "': We did not notify user '" << userName | |
| << "' (Problem types enabled) for a problem before. Not sending Recovery notification."; | |
| continue; | |
| } | |
| } |
However, for Notification objects, there is no such handling and configuring such an object simply never notifies. It would probably be a good idea to make this do the same as for the User object.
ref/IP/56200
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/notificationsNotification eventsNotification eventsbugSomething isn't workingSomething isn't workingref/IP