List Info

Thread: Help required(sending SMS alerts)




Help required(sending SMS alerts)
user name
2006-12-18 15:37:20
Hi all,
   
  I need some help in configuring sms alert using mobile
phone attached to linux machine via serial cable.. Well i am
able to communicate to mobile and send sms and make call
using gnokii software. 
   
  But i want my mobile to automatically generate alerts when
an email is received to any email account on linux machine
along with the contents of email.
   
  Like i recieve email alerts of smokeping and now i want to
send those alerts through SMS.. I am not using any SMS
gateway .. its simply a mobile phone attached to the machine
via serial cable..
   
  Can any one help me out.. or provide the script to do so. 
   
  I hope you all understand what my problem is.. Any help in
this regards will be highly apperciated.
   
  Regards
   
  S. Waqqas
   
 Send instant messages to your online friends http://uk.messenger.yah
oo.com 

--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/
mrtg
FAQ         http://faq.mrtg.org   
Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz
.ch/lsg2.cgi

Help required(sending SMS alerts)
user name
2006-12-18 21:59:09
Hi,

For sending SMS message you need to send AT commands to you
mobile
phone. I wrote a program in C and it use to be called by the
nagios.
This program send message packed in AT commands to mobile
phone/GSM
Modem and it sends the SMS message.

I am not sure about perl. If you can do the same in perl
then I think
its not that difficult.

For getting the email, you will have to write a script/code
that gets
the messages from the mail server. But you might be able to
find the
scripts for that too.

Best of luck

Nauman Malik
Student Analyst
Network Operations
California State University, Chico
California, USA

-----Original Message-----
From: mrtg-bouncelist.ee.ethz.ch [mailto:mrtg-bouncelist.ee.ethz.ch]
On Behalf Of Syed Waqqas Ahmed
Sent: Monday, December 18, 2006 7:37 AM
To: mrtglist.ee.ethz.ch; smokeping-userslist.ee.ethz.ch
Subject: [mrtg] Help required(sending SMS alerts)

Hi all,
   
  I need some help in configuring sms alert using mobile
phone attached
to linux machine via serial cable.. Well i am able to
communicate to
mobile and send sms and make call using gnokii software. 
   
  But i want my mobile to automatically generate alerts when
an email is
received to any email account on linux machine along with
the contents
of email.
   
  Like i recieve email alerts of smokeping and now i want to
send those
alerts through SMS.. I am not using any SMS gateway .. its
simply a
mobile phone attached to the machine via serial cable..
   
  Can any one help me out.. or provide the script to do so. 
   
  I hope you all understand what my problem is.. Any help in
this
regards will be highly apperciated.
   
  Regards
   
  S. Waqqas
   
 Send instant messages to your online friends
http://uk.messenger.yah
oo.com 

--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/
mrtg
FAQ         http://faq.mrtg.org   
Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz
.ch/lsg2.cgi

--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/
mrtg
FAQ         http://faq.mrtg.org   
Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz
.ch/lsg2.cgi

Help required(sending SMS alerts)
user name
2006-12-19 13:31:30
I am experiencing difficulty in integrating all these things
together. Like I am able to send SMS through AT command
that’s no issue. But checking for new email and then sending
SMS including contents of email.. that’s the difficult
part...
   
  Any help in this regard.. ??
NOP Student <nopstudentexchange.csuchico.edu>
wrote:  Hi,

For sending SMS message you need to send AT commands to you
mobile
phone. I wrote a program in C and it use to be called by the
nagios.
This program send message packed in AT commands to mobile
phone/GSM
Modem and it sends the SMS message.

I am not sure about perl. If you can do the same in perl
then I think
its not that difficult.

For getting the email, you will have to write a script/code
that gets
the messages from the mail server. But you might be able to
find the
scripts for that too.

Best of luck

Nauman Malik
Student Analyst
Network Operations
California State University, Chico
California, USA

-----Original Message-----
From: mrtg-bouncelist.ee.ethz.ch [mailto:mrtg-bouncelist.ee.ethz.ch]
On Behalf Of Syed Waqqas Ahmed
Sent: Monday, December 18, 2006 7:37 AM
To: mrtglist.ee.ethz.ch; smokeping-userslist.ee.ethz.ch
Subject: [mrtg] Help required(sending SMS alerts)

Hi all,

I need some help in configuring sms alert using mobile phone
attached
to linux machine via serial cable.. Well i am able to
communicate to
mobile and send sms and make call using gnokii software. 

But i want my mobile to automatically generate alerts when
an email is
received to any email account on linux machine along with
the contents
of email.

Like i recieve email alerts of smokeping and now i want to
send those
alerts through SMS.. I am not using any SMS gateway .. its
simply a
mobile phone attached to the machine via serial cable..

Can any one help me out.. or provide the script to do so. 

I hope you all understand what my problem is.. Any help in
this
regards will be highly apperciated.

Regards

S. Waqqas

Send instant messages to your online friends
http://uk.messenger.yah
oo.com 

--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/
mrtg
FAQ http://faq.mrtg.org
Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz
.ch/lsg2.cgi

--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/
mrtg
FAQ http://faq.mrtg.org
Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz
.ch/lsg2.cgi



 Send instant messages to your online friends http://uk.messenger.yah
oo.com 

--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/
mrtg
FAQ         http://faq.mrtg.org   
Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz
.ch/lsg2.cgi

Help required(sending SMS alerts)
user name
2006-12-19 13:47:22
Hi

Syed Waqqas Ahmed wrote:
> I am experiencing difficulty in integrating all these
things together. Like I am able to send SMS through AT
command that?s no issue. But checking for new email and then
sending SMS including contents of email.. that?s the
difficult part...

It is not that difficult, at least not if you are running
something of a
*X system.  Many of these are using procmail as a mail
delivery
subsystem (google procmail) or support .forward settings.

If you cannot run your own mail server you can use fetchmail
to fetch
messages to be delivered locally.

There are actually many differrent ways to achieve what you
want.

cheers

Erich


--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/
mrtg
FAQ         http://faq.mrtg.org   
Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz
.ch/lsg2.cgi

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )