From 62d7baa3ec2d1ca7163331cae210925a665c0552 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 27 Dec 2020 09:09:40 +0100 Subject: [PATCH] bundles/icinga2: admins shall receive all notifications --- bundles/icinga2/files/icinga2/users.conf | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bundles/icinga2/files/icinga2/users.conf b/bundles/icinga2/files/icinga2/users.conf index b1ab301..e60615c 100644 --- a/bundles/icinga2/files/icinga2/users.conf +++ b/bundles/icinga2/files/icinga2/users.conf @@ -7,10 +7,7 @@ object User "${username}" { display_name = "${username}" enable_notifications = true period = "24x7" -% if config['is_admin']: - states = [ OK, Warning, Critical, Up, Down ] - types = [ Problem, Recovery, Custom, Acknowledgement ] -% else: +% if not config['is_admin']: states = [ OK, Warning, Critical, Up, Down ] types = [ Problem, Recovery ] % endif