this needs to be removed or it will send the host command when sending notifications for a service
I would also suggest changing the notify-host-by-sms command to the following so it will look like the service command
Code: Select all
/usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$ $HOSTALIAS$ is $HOSTSTATE$ Additional Info:\n\n$HOSTOUTPUT$" |/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTPAGER$