Admin Messages Over SMS

gmdesign

Verified User
Joined
Dec 1, 2007
Messages
28
Hallo!

As you know, when some service fails to start, or stops or so on, server admin gets a notification message over Message System. I have a sms gateway so I'd like to add this functionality to DA. I'd like DA to send SMS over my sms gateway every time, it registers new message for admin. So where is script located, which serves message system and forms admin messages when some service fails?
 
It's my understanding, and I could be wrong as it's been awhile since it was mentioned at a conference I recently attended, that you should be able to setup an SMTP to SMS mail gateway of some sort. In that way, you could send a message to that mail system to have the notifications sent out to the cell phone. Another option is to send the mail to your cell phone directly using an e-mail address. Some provider's like AT&T and Verizon provide a means to be able to do this, e.g. for a number 831-251-1234 under AT&T you would send that e-mail to [email protected]. Then, just change the e-mail address in the admin panel to the address you want the notifications sent to. I do this already for mine. I hope this helps.
 
Thanks!

That's great idea, but I'd like to add this functionality to DA source code, not just sending sms like email.
 
Thanks!

That's great idea, but I'd like to add this functionality to DA source code, not just sending sms like email.

Hi,

You cannot add to the DA Source, only Mark or John can do that. What you may be able to do is extend the default scripts that get called after an event but I can't recall any script for a service-down event.

I will probably include this functionality in the DAToolkit plugin I have in the planning for early next year... if you give me the specs I may even write a version that works with your SMS gateway.

Regards,
 
Great, I'm using clickatell.com as my gateway, so it's documented how to use HTTP gateway ower php to send SMS. if any questions I'll help with great pleasure!
 
Great, I'm using clickatell.com as my gateway, so it's documented how to use HTTP gateway ower php to send SMS. if any questions I'll help with great pleasure!

Great, That was the gateway I was going to implement in any event :) I'll be starting with the DAToolkit plugin as soon as the next versions of the InvoicingManager and SpamBlocker plugins are out.

Regards,
 
Perhaps the best option is to ask for a feature, that allows a 'hook script' to be executed. That way everyone can implement the features they want.

However, if a service goes down, and the server is still working, you get a nice message. But more often, an entire server starts to fail, with stuff like kernel errors, killed services and so on. Are you sure you want to rely on the fact the cron daemon keeps running and the box is still connected correctly to the internet?
Won't it be a better idea to setup a cheap ass dedicated box on another network with a solution like Nagios? - That way you can monitor servers from one central point and view all information at once. At the moment, we use a set of two Nagios servers (on different networks) to monitor everything :).
 
Back
Top