Page 1 of 1

nagios integration with http sms gateway url

Posted: Fri Nov 25, 2011 3:27 am
by sdbhabal
Hi Experts,

I have installed Nagios Core Version 3.3.1 on CentOS release 5.6 (Final).
I have configured nagios to send me email alert notification.
I wanted to configure nagios to send me sms alert notification.
I have http sms gateway api URL.
I dont know how do i integrate them together to send me sms alert notification.
Any help would be appreciated.

Regards
Santosh

Re: nagios integration with http sms gateway url

Posted: Sun Nov 27, 2011 5:14 pm
by jsmurphy
Well I would start by looking at how nagios sends email in commands.cfg... basically it will execute a couple of shell commands with some Nagios macros in the definition. Essentially you will need to write a script to parse information to the SMS gateway and then stick in a command definition for it and use the in-built macros to get nagios to provide it with the appropriate information.

Re: nagios integration with http sms gateway url

Posted: Mon Nov 28, 2011 4:51 pm
by aston
another option that i use is Prowl messages the particular setup i have sents messages to an iphone but im sure other apps will be available for android blackberry etc

and best of all the messages are free which is always a bonus while testing :)

check out my post below
http://support.nagios.com/forum/viewtop ... f=7&t=4240

JSmurphy's advice is spot on tho you will need to configure a notification with commands.cfg then with in the default templates.cfg file ammend host_notification_commands to call your new notify command these can be ',' separated.

as a test the command you configure within commands.cfg and be tested from the command line so get the command working first then configure the above

maybe a useless ramble but hopefully it helps