mirror of https://github.com/Icinga/icinga2.git
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:
commit
313b2a759e
|
@ -320,8 +320,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);
|
||||
|
|
Loading…
Reference in New Issue