Page 2 of 2

Re: Notify by SMS

Posted: Fri Sep 06, 2019 10:04 am
by scottwilkerson
When I look at the contact "Matt Cell" and "GID Alerts" you have notify-host-by-sms in the Service Notification Command

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$