mirror of https://github.com/Icinga/icinga2.git
Update mail-host-notification.sh and mail-service-notification.sh
This commit is contained in:
parent
31710e1162
commit
bdda58175b
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue