From a85892ccb988f63337ebc064bf4cec8cffbab578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Fri, 14 Apr 2023 12:22:27 +0200 Subject: [PATCH] mail-*-notification: remove redundant required = false --- etc/icinga2/conf.d/commands.conf | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/etc/icinga2/conf.d/commands.conf b/etc/icinga2/conf.d/commands.conf index 5e1035018..29f86210a 100644 --- a/etc/icinga2/conf.d/commands.conf +++ b/etc/icinga2/conf.d/commands.conf @@ -43,9 +43,7 @@ object NotificationCommand "mail-host-notification" { required = true value = "$notification_hoststate$" } - "-X" = { - required = false - value = "$notification_hostnotes$" + "-X" = "$notification_hostnotes$" "-t" = { required = true value = "$notification_type$" @@ -114,14 +112,8 @@ object NotificationCommand "mail-service-notification" { required = true value = "$notification_type$" } - "-X" = { - required = false - value = "$notification_hostnotes$" - } - "-x" = { - required = false - value = "$notification_servicenotes$" - } + "-X" = "$notification_hostnotes$" + "-x" = "$notification_servicenotes$" "-u" = { required = true value = "$notification_servicedisplayname$"