From cc3651ed56c2c378842ec8fb41232d8a49cd9793 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 19 Jan 2018 12:34:29 +0100 Subject: [PATCH] Check notification state filters for problems only, not for Custom, etc. refs #5952 --- lib/icinga/notification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index b2f9fb6a2..c136f68fa 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -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);