LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-28-2007, 05:57 PM   #1
avatardeviva
Member
 
Registered: Jan 2004
Location: Almost Canada :-p
Posts: 34

Rep: Reputation: 15
Use Modem to Call Phone Number


Hi Folks,

I've been having some issues with two of our linux servers (they just mysteriously stop responding at random times - brand new, have tried replacing all the parts). Anyway, I think I have the problem fixed, but it has brought up an interesting problem: I don't know when they go down. We have some modems that we've salvaged from various operations, and I'd like to know if there is a way to use one of said modems (or just buy a new one - external of course) to call me when I run a command (i.e. if the server doesn't respond to a ping for over 30 seconds, call me). I was assuming that mgetty/vgetty could do that, but I didn't find any hard evidence saying it could. Any thoughts on this? And on a side note, any modems that are particularly recommended?

Thanks,
Stephen
 
Old 12-28-2007, 06:10 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
Take a look at minicom. I know that minicom will do what you want if somebody types in the commands. Minicom has a script feature which I have never used where it runs a script at startup without human intervention. Something like:

minicom -S /root/commands/minicom.script

You might be able to do what you want with a minicom script.

-----------------------
Steve Stites
 
Old 02-28-2008, 08:21 PM   #3
avatardeviva
Member
 
Registered: Jan 2004
Location: Almost Canada :-p
Posts: 34

Original Poster
Rep: Reputation: 15
This is kind of a 'wrap up' of what I ended up doing. Because I didn't want to waste any money on a USB modem (if it didn't work, we'd be throwing it into the box of oblivion) I started looking for other alternatives to getting a message to me via phone. I was looking through Webmin, and lo and behold there was an option to send a text message to my phone! It was under 'System and Server Status'. So, all of my servers are hooked into a master server via webmin now. A warning to whoever may want to set this up: make sure that it only notifies you when a system goes down. Do not have it notify you ever X minutes. I ended up getting about 108 text messages from my server when one of them was down for a day. Other than that though, it works perfectly. Thanks Webmin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Find out the owner of a phone number? jmmbacon Linux - General 1 07-06-2007 02:43 PM
Any phone call alert software? ibanez697 Linux - Software 3 03-19-2007 03:37 PM
local virtual phone number nestor_manya General 0 11-17-2006 08:48 AM
phone call via a computer abd_bela Debian 2 03-28-2004 09:25 AM
kppp, phone number error DeNieD Linux - Software 1 08-17-2003 03:50 AM


All times are GMT -5. The time now is 11:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration