Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/renchap/nagios_notify_sms_ovh

Small utility to send Nagios alerts on a mobile phone using OVH SMS API
https://github.com/renchap/nagios_notify_sms_ovh

Last synced: 15 days ago
JSON representation

Small utility to send Nagios alerts on a mobile phone using OVH SMS API

Awesome Lists containing this project

README

        

== Summary ==
Small utility to send Nagios alerts on a mobile phone using OVH SMS API

== Files ==

* nagios_notify_sms_ovh.rb => sends SMS
* single_checker.rb => only checks for remaining credit

== Sample nagios config ==

define command {
command_name notify-host-by-sms
command_line /usr/bin/ruby /usr/local/nagios_notify_sms_ovh/nagios_notify_sms_ovh.rb -c /usr/local/nagios_notify_sms_ovh/conf.yml -m host -h $HOSTALIAS$ -d "$LONGDATETIME$" -t $NOTIFICATIONTYPE$ -a $HOSTSTATE$ -e '' -n "$CONTACTPAGER$"
}

define command {
command_name notify-service-by-sms
command_line /usr/bin/ruby /usr/local/nagios_notify_sms_ovh/nagios_notify_sms_ovh.rb -c /usr/local/nagios_notify_sms_ovh/conf.yml -m service -s "$SERVICEDESC$" -h $HOSTALIAS$ -d "$LONGDATETIME$" -t $NOTIFICATIONTYPE$ -a $HOSTSTATE$ -e "$SERVICEOUTPUT$" -n $CONTACTPAGER$
}

== Credits ==
Original author : Renaud Chaput
Contributors :
* Nicolas Szalay

== Licence ==
This script is licenced under MIT Licence