LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-27-2010, 03:21 PM   #1
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Rep: Reputation: 30
Integrating SMS Server with Applications


Hey,

I dunno whether its possible or not but I would like to have all my error logs sent to my mobile phone. For example I want all my /var/log/messages "error" reports to be sent to my mobile as sms, or you can take another example of Bacula, I want all the failed backup reports to be sent to me as a sms.

Is there any software which I can integrate or any script or any application so something.

Yeah I do have a monitoring system in place but again I need to integrate the monitoring system to SMS server and I dunno know how to exactly do it.


Shed as much light on this as you can. I'm an noob with sms server and stuff so guide me to basic reading even pls.


Your help is appreciative.

Regards
Kk
 
Old 05-27-2010, 04:09 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kool_kid View Post
Hey,
I dunno whether its possible or not but I would like to have all my error logs sent to my mobile phone. For example I want all my /var/log/messages "error" reports to be sent to my mobile as sms, or you can take another example of Bacula, I want all the failed backup reports to be sent to me as a sms.

Is there any software which I can integrate or any script or any application so something. Yeah I do have a monitoring system in place but again I need to integrate the monitoring system to SMS server and I dunno know how to exactly do it.

Shed as much light on this as you can. I'm an noob with sms server and stuff so guide me to basic reading even pls.
Most cell phone companies have an address for each cell phone, where you can email a message, and it'll go to the phone via SMS. Something like "<phone number>@mms.att.net", or something like that. Might even be on your cell providers website, or something you can easily get from them via a quick phone call to support.

All you've got to do is set up a small script to send an email, to that address. You mention an SMS server, a monitoring system, and your Linux box...are they all the same, or different boxes? Something like
Code:
cat <logfile name> | grep ERROR | mailx -s "ERROR REPORT" "<your error message goes here> <phone #>@<cell phone SMS address>"
is a basic start. Look up some shell scripting tutorials, and the man pages for the mailx command. Once you get your error(s) parsed out, your script can then email out.
 
Old 05-27-2010, 08:13 PM   #3
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Original Poster
Rep: Reputation: 30
Thanks. Now that's helpful im gonna give a call to my mobile service provider and ask him the details.

I was wondering is there a way to setup my own SMS Server and integrate it?
 
Old 05-28-2010, 09:14 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by kool_kid View Post
Thanks. Now that's helpful im gonna give a call to my mobile service provider and ask him the details.

I was wondering is there a way to setup my own SMS Server and integrate it?
There are SMS servers available for Linux, but unless you're really shoveling out LOTS of messages, it's not worth it. The Email interface is very easy to set up and use.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Integrating Open Source and Windows Applications LXer Syndicated Linux News 0 08-06-2006 09:21 AM
integrating sun one directory server with samba server. vedang Linux - Newbie 1 07-20-2006 08:13 AM
configure SMS server for linux server kwtan Linux - General 1 11-23-2005 05:00 AM
Integrating Linux into Windows Server Baryonic Being Linux - Networking 4 08-31-2004 04:29 PM
sms server Winanjaya Linux - Networking 0 07-26-2004 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration