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

send_sms.php

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2011-09-29
Owner
License
Other
Hits
89938
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!
This plugin will connect to smscity to send your SMS. The connector uses https to send the messages.
You will need an account with credits on smscity.com to use this plugin.

Unpack the archive in nagios/libexec/

change the variables in send_sms.php to reflect your user and password, and of course your sender name.

Add the following to commands.cfg:

define command{
command_name notify-host-by-sms
command_line $USER1$/send_sms.php -T $_CONTACTMOBILE$ -M '$HOSTSTATE$: $HOSTNAME$ $HOSTACKCOMMENT' > /dev/null 2>&1
}

define command{
command_name notify-service-by-sms
command_line $USER1$/send_sms.php -T $_CONTACTMOBILE$ -M '$SERVICESTATE$: $SERVICEDESC$ on $HOSTNAME$ $SERVICEACKCOMMENT$' > /dev/null 2>&1
}

Make sure you add _Mobile to every contact in your contacts.cfg, this should contain the 06-number to send the SMS to.