LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2006, 06:39 PM   #1
JRR883
Member
 
Registered: Aug 2005
Location: God's barf bag
Distribution: Ubuntu 7.04 (Feisty Fawn)
Posts: 86

Rep: Reputation: 15
Network cable disconnect alert


I need a program that will alert me when a network cable has been disconnectedm kinda like in WinXP. A Gnome-based app would be preferable. Sometimes my dad is an asshole and disconnects my patch cable from the router, and I'm not alerted that he has until Gaim can't reconnect. Any candidates?
 
Old 05-14-2006, 08:09 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
There are gdesklets which monitor network traffic - I imagine one of these would help. Most do not seem to tell you if the network is connected or not. I'm not sure how one would go about detecting the connection at the other end ... I guess windows just polls the network periodically: something you too can do.

Some possibilities:
http://www.gxsnmp.org/
http://etherape.sourceforge.net/
http://rubyforge.org/projects/gnms/
https://launchpad.net/products/gnome-netstatus

The hacked way would be to write a script which (say) pings the router and warns you if the router cannot be reached. It could run every few seconds, in the background, and starts running when you login.
 
Old 05-14-2006, 08:46 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Write a script that monitors /var/log/messages, when your dad pulls the cable out you'll see a message like this:
Code:
May 14 23:33:20 [kernel] eth0: link down
Replace eth0 with your ethernet link obviously. That message appears when the cable is pulled so it sounds like a neater solution that pinging the router
 
Old 05-14-2006, 09:06 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Hah! Good call cs-cam: only with me it says "May 15 <snip> eth0: Media Link Off" When it's reconnected I get "Media Link On 100mbps full-duplex" Some expermenting will be needed to get the message right - though, the script could just look for eth0 messages and display them...

I wasn't really all that keen on that <imitate=sean_connery> "confirm distance to target: one ping only" </imitate> approach either.
 
  


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
i have to disconnect internet to get on network Niflheim Linux - Networking 1 02-03-2005 06:44 PM
Network Alert System peaceofcrap2001 Linux - Networking 2 10-10-2004 11:40 AM
Cannot disconnect modem from rh-config-network slackist Linux - Networking 3 05-02-2004 07:50 AM
Redhat Network Alert Icon HKDude Linux - Newbie 1 04-26-2004 10:33 PM
network disconnect slackware void4ever Linux - Networking 2 02-19-2004 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:30 AM.

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