LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-15-2002, 01:00 AM   #1
ph33r
LQ Newbie
 
Registered: Mar 2002
Posts: 20

Rep: Reputation: 0
Detecting failures


Sometimes my cable modem gets like "disconnected" by my ISP, for some reason (ill fix it
However is there a way to tell when it happens without actually looking at the modem lights?

For example i want to make a script that will log the time it happened.. how do i get the time? =?
 
Old 05-15-2002, 03:36 AM   #2
Token
LQ Newbie
 
Registered: May 2002
Location: Atlanta
Distribution: RH 7.2
Posts: 20

Rep: Reputation: 0
I made a perl script using the Net::Ping module and had it send 3 small packet pings to yahoo. If the ping failed then it would send me an e-mail. Then setup a cron job do run the script every 5 mins.
 
  


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
calloc failures easykillsoft Linux - Software 2 11-19-2005 07:02 PM
Install Failures pbeckler Fedora - Installation 9 08-27-2005 01:36 AM
Installation Failures sumadartson2004 Linux - Newbie 1 03-29-2004 09:17 PM
Logon Failures! skip1 Linux - Software 15 02-23-2003 11:02 AM
Module Failures JerryHobby Linux - General 1 10-04-2002 12:28 PM


All times are GMT -5. The time now is 11:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration