Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Send SMS notifications from Nagios
Current Version
1.0
Last Release Date
2012-11-26
Owner
Matt Holmes
Website
http://www.world-text.com
Download URL
https://github.com/m-r-h/Nagios-SMS-WT
License
BSD
Compatible With
SMS Notification perl script
To send SMS notificaitons from Nagios You'll need an active World-Text.com account to send using this script. ACCOUNTID and APIKEY are obtained from within your World-Text.com account page. Replace with the values from there. Define two commands notify-by-sms and host-notify-by-sms as follows define command { command_name notify-by-sms command_line $USER1$/notify_worldtext_sms.pl -i ACCOUNTID -k APIKEY -d $CONTACTPAGER$ -t "NOTIFICATIONTYPE$ $SERVICESTATE$ $SERVICEDESC$ Host($HOSTNAME$) Info($SERVICEOUTPUT$) Date($SHORTDATETIME$)" } define command { command_name host-notify-by-sms command_line $USER1$/notify_worldtext_sms.pl -i ACCOUNTID -k APIKEY -d $CONTACTPAGER$ -t "$NOTIFICATIONTYPE$ $HOSTSTATE$ Host($HOSTALIAS$) Info($HOSTOUTPUT$) Time($SHORTDATETIME$)" } In your contacts add the field "pager" with the contact's mobile number in full international format e.g. define contact { contact_name engineer alias Support Engineer service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-sms host_notification_commands host-notify-by-email,host-notify-by-sms email [email protected] pager 447987xxxxxx }
Configured the said SMS Alert Thing in a proper manner but still unable to receive any kind of alert messages. Even Nagios Linux Shell Command Execution Shows That SMS has been sent but I couldn't see it. ./notify_worldtext_sms.pl -i 33333 -k -d +919879597301 -t Hello From Nagios --sim The OUTPUT is "Message sent succesfully to +919879597301 ", but I don't get it. AFAIK, if CLI doesn't work, how would the nagios configuraiton works ?
As the title really, this works perfectly and allows coverage of mobiles worldwide.
You must be logged in to submit a review.
To:
From: