diff --git a/bundles/icinga2/files/icinga2/groups.conf b/bundles/icinga2/files/icinga2/groups.conf index 8f82a97..cc18159 100644 --- a/bundles/icinga2/files/icinga2/groups.conf +++ b/bundles/icinga2/files/icinga2/groups.conf @@ -18,6 +18,7 @@ object ServiceGroup "checks_with_mail" { display_name = "Checks which send E-Mails" assign where service.vars.notification.mail == true + ignore where host.vars.notification.mail == false } object HostGroup "checks_with_sms" { @@ -30,4 +31,5 @@ object ServiceGroup "checks_with_sms" { display_name = "Checks which send SMS" assign where service.vars.notification.sms == true + ignore where host.vars.notification.sms == false } diff --git a/bundles/icinga2/files/icinga2/notifications.conf b/bundles/icinga2/files/icinga2/notifications.conf index 0e4e910..0183a45 100644 --- a/bundles/icinga2/files/icinga2/notifications.conf +++ b/bundles/icinga2/files/icinga2/notifications.conf @@ -18,6 +18,7 @@ apply Notification "notify_service-notification" to Service { } assign where service.vars.notification.sms == true + ignore where host.vars.notification.sms == false } apply Notification "notify_service-notification-mail" to Service { @@ -26,4 +27,5 @@ apply Notification "notify_service-notification-mail" to Service { assign where service.vars.notification.mail == true ignore where service.vars.notification.sms == true + ignore where host.vars.notification.mail == false }