Merge pull request #6016 from Icinga/fix/state-filters-for-custom-notifications

Check notification state filters for problems only, not for Custom, etc.
This commit is contained in:
Michael Friedrich 2018-03-19 15:52:37 +01:00 committed by GitHub
commit 313b2a759e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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