HI ALL
Jim Avery
jim at jimavery.me.uk
Fri Mar 12 16:25:39 CET 2010
On 12 March 2010 14:43, wale Ajayi <wertyy.w at gmail.com> wrote:
> Please i need info on web sms + Nagios integration, thanks for your response
It is often a lot easier to use an email-SMS gateway service rather
than setting up web sms directly. For example I used to use
http://www.intellisms.co.uk/ .
You have to set up your own Nagios notification definitions to format
the email appropriately to the way your chosen email-sms gateway
works. For example to use intellisms they expect the email to have
the login and recipient information in the subject line of the email.
I had something like this:
# 'notify-host-by-sms-IntelliSMS' command definition
define command{
command_name notify-host-by-sms-IntelliSMS
command_line /usr/bin/printf "%b" "Nagios: Host $NOTIFICATIONTYPE$
$HOSTALIAS$ now $HOSTSTATE$ at $SHORTDATETIME$ Info: $HOSTOUTPUT$" |
/usr/bin/mail -s "Username:yourusername Password:$USER3$
To:$CONTACTPAGER$" sendsms at messaging.intellisoftware.co.uk
}
You'll need something similar for the service notification command
definition too.
You need to set up your contact definitions in Nagios to use this
notification command instead of the standard Nagios one and put the
mobile number of the recipient in the pager directive in the contact
definition.
You also need to put the password in the resources.cfg file.
Another option is your mobile phone provider might have their own
email system which allows you to receive emails on your mobile. It
might be more cost effective to use that, although I have found that
with some providers it can be very unreliable.
hth,
Jim
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list