From bdda58175bb30de32e8658bce1b73bfff229402a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Thu, 2 Mar 2023 14:08:25 +0100 Subject: [PATCH] Update mail-host-notification.sh and mail-service-notification.sh --- etc/icinga2/scripts/mail-host-notification.sh | 4 ++-- etc/icinga2/scripts/mail-service-notification.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/icinga2/scripts/mail-host-notification.sh b/etc/icinga2/scripts/mail-host-notification.sh index 3850ad651..0c20ecb65 100755 --- a/etc/icinga2/scripts/mail-host-notification.sh +++ b/etc/icinga2/scripts/mail-host-notification.sh @@ -78,7 +78,7 @@ do l) HOSTNAME=$OPTARG ;; # required n) HOSTDISPLAYNAME=$OPTARG ;; # required o) HOSTOUTPUT=$OPTARG ;; # required - X) HOSTNOTES="${OPTARG}" ;; + X) HOSTNOTES=$OPTARG ;; r) USEREMAIL=$OPTARG ;; # required s) HOSTSTATE=$OPTARG ;; # required t) NOTIFICATIONTYPE=$OPTARG ;; # required @@ -134,7 +134,7 @@ fi ## Check whether host notes was specified. if [ -n "$HOSTNOTES" ] ; then NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE -Host-Notes: $HOSTNOTES" +Host notes: $HOSTNOTES" fi ## Check whether author and comment was specified. diff --git a/etc/icinga2/scripts/mail-service-notification.sh b/etc/icinga2/scripts/mail-service-notification.sh index da277adb7..35287439b 100755 --- a/etc/icinga2/scripts/mail-service-notification.sh +++ b/etc/icinga2/scripts/mail-service-notification.sh @@ -139,15 +139,15 @@ IPv6: $HOSTADDRESS6" fi ## Check whether host notes was specified. -if [ -n "${HOSTNOTES}" ] ; then +if [ -n "$HOSTNOTES" ] ; then NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE -Host-Notes: $HOSTNOTES" +Host notes: $HOSTNOTES" fi ## Check whether service notes was specified. -if [ -n "${SERVICENOTES}" ] ; then +if [ -n "$SERVICENOTES" ] ; then NOTIFICATION_MESSAGE="$NOTIFICATION_MESSAGE -Service-Notes: $SERVICENOTES" +Service notes: $SERVICENOTES" fi ## Check whether author and comment was specified.