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

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
45724
Files:
FileDescription
notify_worldtext_sms.plSMS Notification perl script
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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 (1)
As the title really, this works perfectly and allows coverage of mobiles worldwide.