Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacques/nagios-sms
Send SMS Alerts from Nagios
https://github.com/jacques/nagios-sms
Last synced: about 1 month ago
JSON representation
Send SMS Alerts from Nagios
- Host: GitHub
- URL: https://github.com/jacques/nagios-sms
- Owner: jacques
- License: mit
- Created: 2008-08-05T22:41:46.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2008-08-17T21:35:43.000Z (over 16 years ago)
- Last Synced: 2024-10-14T13:22:11.185Z (about 1 month ago)
- Language: PHP
- Homepage: http://www.ataris.co.za/projects/nagios-sms/
- Size: 74.2 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
nagios-sms
----------* Requires that PEAR is included in your php include_path
* Requires that SMS_Clickatell is installed from
http://www.powertrip.co.za/PEAR/SMS_Clickatell/
* Requires the following standard PEAR modules:
- PEAR
- Console_Getopt
* You will need a Clickatell account in order to receive notifications
from them.* Update sendsms.php with your login credentials for Clickatell if you want
to send SMS messages. You can register for an account with Clickatell by
clicking on the following link (http://tinyurl.com/clickatell) in order
to sign up for an HTTP/S API account and purchase SMS Credits.Under the contacts in contacts.cfg you add an options for
service_notification_commands and host_notification_commands the following:service_notification_commands notify-by-email,service_notify_with_sms
host_notification_commands host-notify-by-email,host_notify_with_smsNow specify a pager option with your cellphone number.
The contact should look similar to:
define contact{
contact_name joe
alias Joe Soap
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-email,service_notify_with_sms
host_notification_commands host-notify-by-email,host_notify_with_sms
pager 27821234567
email [email protected]
}In misccommands.cfg add:
------------------------# 'service_notify_with_sms' command definition
define command{
command_name service_notify_with_sms
command_line /usr/local/bin/sendsms.php -d $CONTACTPAGER$ -m '$NOTIFICATIONTYPE$: $HOSTNAME$ is $SERVICESTATE$ ($SERVICEOUTPUT$)'
}# 'host_notify_with_sms' command definition
define command{
command_name host_notify_with_sms
command_line /usr/local/bin/sendsms.php -d $CONTACTPAGER$ -m '$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$ ($HOSTOUTPUT$)'
}