Home Directory Addons Notifications SMS SMS Notifications via World-Text

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

SMS Notifications via World-Text

Current Version
1.0
Last Release Date
2012-11-26
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
License
BSD
Hits
52160
Files:
FileDescription
notify_worldtext_sms.plSMS Notification perl script
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
SMS Notifications via World-Text
Send SMS notifications from Nagios
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)
bynishith, October 12, 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 ?
As the title really, this works perfectly and allows coverage of mobiles worldwide.