Home Directory Addons Notifications SMS Nagios SMS notification via D7SMS

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

Nagios SMS notification via D7SMS

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2018-11-05
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor
  • Nagios Network Analyzer
  • Nagios Log Server
Hits
219
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Nagios SMS notification via D7SMS
Nagios SMS notification via D7SMS allows to send SMS notifications to your mobile phone from Nagios.
Nagios SMS notification via D7SMS allows to send SMS notifications to your mobile phone from Nagios.
It uses Nagios pager configuration to send SMS through the API gateway.
Python script for sending SMS notifications in nagios using direct7 sms gateway.



Nagios Setup
Copy this file to your Nagios plugin folder

Debian/Ubuntu: /usr/local/nagios/libexec
Centos: /usr/lib/nagios/plugins (32 bit)
/usr/lib64/nagios/plugins (64 bit)
Create commands for SMS notification (Service notification and also host notification). Replace USER and PASS with the credentials recieved from http://sms.d7networks.com

Default path : /usr/local/nagios/etc/objects/commands.cfg
define command{
command_name service-notify-by-sms
command_line $USER1$/d7sms.py --username USER --password PASS --to $CONTACTPAGER$ --content "$NOTIFICATIONTYPE$:$SERVICEDESC$ on $HOSTNAME$ with IP $HOSTADDRESS$ Current State $SERVICESTATE$ Service Info: $SERVICEOUTPUT$ Date: $LONGDATETIME$"
}
define command{
command_name host-notify-by-sms
command_line $USER1$/d7sms.py --username USER --password PASS --to $CONTACTPAGER$ --content "$NOTIFICATIONTYPE$: Host: $HOSTNAME$, State: $HOSTSTATE$, Address: $HOSTADDRESS$, Info: $HOSTOUTPUT$, Date/Time: $LONGDATETIME$"
}
Update contact template and add below commands after existing host and service notification commands.

Default path : /usr/local/nagios/etc/objects/contacts.cfg
service_notification_commands notify-service-by-email,service-notify-by-sms
host_notification_commands notify-host-by-email,host-notify-by-sms
Add a pager number to your contacts, make sure it has the international prefix

you can get the latest version of this script from GUTHUB : https://github.com/d7networks/nagios

For all queries and help on installation please contact support@d7networks.com