Check notification state filters for problems only, not for Custom, etc.

refs #5952
This commit is contained in:
Michael Friedrich 2018-01-19 12:34:29 +01:00
parent 59b34846e8
commit cc3651ed56
1 changed files with 2 additions and 2 deletions

View 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);