Posted by eva2000, 06-26-2011, 03:33 AM | I'm writing an all in one mysql and data backup script which merges various tools together i.e. mysqldump, rsync, percona xtrabackup and mydumper backup tools. Currently, it sends backup sucess/failure notifications via email from shell.
Then it got me thinking, what about sending notifications via SMS text message ? But I have no idea what is needed on the server end to do this ? Would it be possible to do this even on remote linux servers where I only have ssh2/root access ?
|
Posted by Mark Muyskens, 06-26-2011, 03:56 AM | I would recommend using a service like Twilio;
http://www.twilio.com
Or for personal use, Google Voice has a decent API for sending texts.
|
Posted by eva2000, 06-26-2011, 06:50 AM | Thanks Mark will look into it, seems to have some nice features too
|
Posted by StevenG, 06-26-2011, 05:16 PM | I've used gnokii http://www.gnokii.org/ in the past on linux boxes and a symbian mobile phone plugged into it. Coupled with apache/nagios and a soap server (for remote hosts to send sms), made a great cheap sms gateway
On mates rates plan with vodafone (technically wasn't supposed to do that, automate sms on that plan but there you go )
|
Posted by Senator B, 06-26-2011, 10:42 PM | Since you're already sending email notifications out, the *easiest* way would be to check with your cell provider and see if they have an email-to-SMS gateway. Most of them do, and then it's just a matter of changing where the emails are sent.
|
Posted by Preetam, 06-26-2011, 11:52 PM | http://en.wikipedia.org/wiki/List_of_SMS_gateways
|
Posted by Trix, 06-27-2011, 04:54 AM | You can also use a service such as this one.
There are other similar (and cheaper) services out there, but the names escape me at the moment.
|
Posted by eva2000, 06-27-2011, 06:41 AM | thanks guys so much useful info, lots of reading to do
|
Posted by ValcatoAdam, 06-27-2011, 06:44 AM | Skype has an API too, if you don't mind paying to send messages.
|
Posted by viGeek, 06-27-2011, 10:14 AM | I have written a bash script that will send text, pm, ill send you the source.
|
Posted by HackedServer, 06-27-2011, 01:45 PM | I've done it before with: http://code.google.com/p/pygooglevoice/
You'll need a Google Voice account, but it worked well.
Just needed a simple command like:
pygooglevoice --batch send_sms 8887776666 Hello World!
|
Posted by viGeek, 06-27-2011, 03:48 PM | Just modify the text etc, used this in a monitoring bash script I put together [simpleMon]. Obviously not the best method, but it functioned as intended.
|
Posted by WholesaleBackup, 06-27-2011, 03:53 PM | 1
I just email to 2065551212@vtext.com and bingo: SMS arrives. . .
;-)
|
Posted by eva2000, 06-28-2011, 12:27 PM | sweet more gem info
thanks viGeek for the sample code too
|
Posted by Preetam, 06-28-2011, 09:43 PM | I suggest you remove your phone number from a public forum
|
Posted by Senator B, 06-29-2011, 12:13 AM | Somehow I think that's not actually his number - check it again, or try calling it if you like
|
Posted by ValcatoAdam, 06-29-2011, 05:08 AM | http://en.wikipedia.org/wiki/555_(telephone_number)
|
Posted by Preetam, 06-29-2011, 11:08 AM | Yet another example where my fingers are faster than my mind...
|
|
Add to Favourites
Print this Article |