# Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)
PROG="`basename $0`"
-HOSTNAME="`hostname`"
+ICINGA2HOST="`hostname`"
MAILBIN="mail"
if [ -z "`which $MAILBIN`" ] ; then
## Build the notification message
NOTIFICATION_MESSAGE=`cat << EOF
-***** Host Monitoring on $HOSTNAME *****
+***** Host Monitoring on $ICINGA2HOST *****
$HOSTDISPLAYNAME is $HOSTSTATE!
# Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)
PROG="`basename $0`"
-HOSTNAME="`hostname`"
+ICINGA2HOST="`hostname`"
MAILBIN="mail"
if [ -z "`which $MAILBIN`" ] ; then
## Build the notification message
NOTIFICATION_MESSAGE=`cat << EOF
-***** Service Monitoring on $HOSTNAME *****
+***** Service Monitoring on $ICINGA2HOST *****
$SERVICEDISPLAYNAME on $HOSTDISPLAYNAME is $SERVICESTATE!