Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-14-2006, 06:39 PM   #1
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:

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
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:
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.


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 PM.

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