Re: SMS Notifications with Custom script
Posted: Fri Dec 09, 2016 1:58 am
Thanks I made the change to the command. Mine was slightly different yes as it used $CONTACTSMS$. I changed it to yours but still no SMS comes through.
The testing output is below:
Below is my contacts.cfg. My notification times are 247. I have sanatized the email and cell number
The testing output is below:
Code: Select all
[root]@nagiosxi $ cat /tmp/TESTINGOUTPUT.txt
$CONTACTPAGER$
Code: Select all
define contact {
contact_name waleed
alias Waleed
host_notifications_enabled 1
host_notification_period waleed_notification_times
service_notification_period waleed_notification_times
host_notification_options d,u,r,f,s,
service_notification_options w,u,c,r,f,s,
host_notification_commands host_notify_by_sms,notify-host-by-email
service_notification_commands notify-host-by-email
can_submit_commands 1
email waleed@xxxxxx
pager xxxxxxxxxx
host_notifications_enabled 1
service_notifications_enabled 1
use xi_contact_generic
}