SMS

SMS Notifications via World-Text

Description:

Send SMS notifications from Nagios

Current Version

1.0

Last Release Date

2012-11-26

Compatible With

  • Nagios 2.x
  • Nagios 3.x

Owner

License

BSD


Project Files
Project Photos
Project Notes
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 engineer@mydomain.com pager 447987xxxxxx }
Reviews (2) Add a Review
Not Getting Messages
by nishith, October 31, 2021
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 ?
Helpful? Yes  No 
Best choice! Works perfectly and worldwide reach
by worldtextadmin, April 30, 2019
As the title really, this works perfectly and allows coverage of mobiles worldwide.
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3 (2)
Favorites
0
Views
52,125