Update mail-host-notification.sh and mail-service-notification.sh

This commit is contained in:
Alexander Aleksandrovič Klimov 2023-03-02 14:08:25 +01:00 committed by Alexander A. Klimov
parent 31710e1162
commit bdda58175b
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

@ -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.