]> granicus.if.org Git - icinga2/commitdiff
Check notification state filters for problems only, not for Custom, etc. 6016/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 19 Jan 2018 11:34:29 +0000 (12:34 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Fri, 19 Jan 2018 11:35:07 +0000 (12:35 +0100)
refs #5952

lib/icinga/notification.cpp

index b2f9fb6a22d3ca62cccc684ea6dcfe8c7675a73d..c136f68faf7795c5ec752389334bbb0f29151ef9 100644 (file)
@@ -323,8 +323,8 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe
                        return;
                }
 
-               /* ensure that recovery notifications are always sent, no state filter checks necessary */
-               if (type != NotificationRecovery) {
+               /* Check state filters for problem notifications. Recovery notifications will be filtered away later. */
+               if (type == NotificationProblem) {
                        Host::Ptr host;
                        Service::Ptr service;
                        tie(host, service) = GetHostService(checkable);