
SMS
send_sms.php
Description:
This plugin will connect to smscity to send your SMS. The connector uses https to send the messages.
Current Version
1.0
Last Release Date
2011-09-29
Compatible With
Owner
License
Other
Project Notes
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.
Reviews
(0)
Add a Review
Page Sections
Project Stats
Rating
0 (0)
Favorites
0
Views
89,951