twilio sms api

Discuss new project and feature ideas here.
See labs.nagios.com for new projects under development.

twilio sms api

Postby glaw » Mon Dec 19, 2011 5:06 pm

I currently manage my nagios machines and use the @vtext.com email address for my sms alerts

verizon doesn't always deliver these messages quickly, so I have written some of my own custom scripting to use the twilio sms api to send messages and it seems much quicker - would like to see some alternate notification methods built into nagious
glaw
 
Posts: 1
Joined: Mon Dec 19, 2011 12:43 pm

Re: twilio sms api

Postby johndoe » Fri Feb 17, 2012 8:42 am

+1 I had to modify nagios to allow me to send using clickatell.

I believe clickatell is the most used SMS API so would be good to see support for this out of the box.
johndoe
 
Posts: 65
Joined: Fri Oct 28, 2011 10:14 am

Re: twilio sms api

Postby tapgateway » Tue Feb 21, 2012 3:49 pm

I saw this post was interested to see if I could make a component to integrate the Twilio SMS API with Nagios XI. This is what I came up with if you'd like to try it:

http://www.tapgateway.com/files/smsapi.zip

If this looks like something that is usable for Twilio, I'll look at adding other APIs.
tapgateway
 
Posts: 6
Joined: Mon Feb 20, 2012 7:56 pm

Re: twilio sms api

Postby johndoe » Fri Feb 24, 2012 10:28 am

Tapgateway, first of all thanks for taking the time to develop this, any chance you can include clickatell on this? would be much appreciated by many i'd guess.
johndoe
 
Posts: 65
Joined: Fri Oct 28, 2011 10:14 am

Re: twilio sms api

Postby tapgateway » Fri Feb 24, 2012 11:37 am

Johndoe, I will look at doing that. I was really hoping for some feedback from the Twilio users, but so far, none. I don't use either (I use TAP), so I've only sent a few messages with a Twilio trial account. I look at Clickatell next week and maybe we can get some feedback.
tapgateway
 
Posts: 6
Joined: Mon Feb 20, 2012 7:56 pm

Re: twilio sms api

Postby tapgateway » Fri Feb 24, 2012 8:51 pm

Johndoe, the 0.2 version I just uploaded should work with Twilio and Clickatell. Let me know what you think and if you have any problems, suggestions, comments, etc.

http://www.tapgateway.com/files/smsapi.zip
tapgateway
 
Posts: 6
Joined: Mon Feb 20, 2012 7:56 pm

Re: twilio sms api

Postby johndoe » Tue Mar 06, 2012 3:57 am

Sorry man, all that did was a 500 error on my nagiosxi... gladly snapshotted the machine before and reverted it back...
johndoe
 
Posts: 65
Joined: Fri Oct 28, 2011 10:14 am

Re: twilio sms api

Postby tapgateway » Tue Mar 06, 2012 11:33 am

It would be very helpful if you could post exactly what was on your screen, as I'm not sure what a "500 error" is.
tapgateway
 
Posts: 6
Joined: Mon Feb 20, 2012 7:56 pm

Re: twilio sms api

Postby mguthrie » Tue Mar 06, 2012 5:54 pm

500 is usually a file-type error, but I tried the link and it was working for me...
User avatar
mguthrie
 
Posts: 4379
Joined: Mon Jun 14, 2010 10:21 am

Re: twilio sms api

Postby tapgateway » Tue Mar 06, 2012 6:16 pm

There was an earlier version of the zip file that was missing the recently added Clickatell module. If you have not downloaded the file the past few days, you need to download it again and install it again. I believe that is what is probably causing the error 500... missing PHP file.
tapgateway
 
Posts: 6
Joined: Mon Feb 20, 2012 7:56 pm

Next

Return to Nagios Ideas

Who is online

Users browsing this forum: No registered users and 0 guests