LinuxQuestions.org
Visit Jeremy's Blog.
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 04-16-2016, 07:34 PM   #1
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
isp uptime monitoring?


Hi

I used to be able to have xmms connected to somafm or some classical station for days, the past few months comcast is up and down, up and down. I've had no changes on my end.

Is there some system utility or something I can install that would let me know by logging when the isp is up and down? I'd like to see any pattern in frequency.

Not finding anything googling other than logging pings.

Chatted with comcast, modem checked out but they recommended a service technician to check things out. Modem is Motorola SB6121 SURFboard DOCSIS 3.0 Cable Modem.

Thanks
 
Old 04-17-2016, 08:31 PM   #2
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
There is no way to monitor your ISP that I am aware of. You can however monitor if your connection to the internet is active using bash scripting. There is a great example here that uses wget: https://stackoverflow.com/questions/...cript-in-linux
 
Old 04-18-2016, 10:09 AM   #3
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Original Poster
Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Thanks mralk3, I found that too.

I found several other posts people with comcast asking same question. I'm doing the following nohup to a text file, caught it offline once overnight.

/bin/ping -vi 180 www.comcast.net | while read pong; do /usr/bin/echo "$(/usr/bin/date): $pong"; done
 
Old 04-18-2016, 11:22 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,474

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by glorsplitz View Post
I'm doing the following nohup to a text file, caught it offline once overnight.

/bin/ping -vi 180 www.comcast.net | while read pong; do /usr/bin/echo "$(/usr/bin/date): $pong"; done
That's just monitoring the connectivity to that website.


Do you want to monitor your connection to your ISP or to the internet in general?


If it's your connectivity to the internet in general then you should consider something more than pinging one website. I'd suggest a combination of their website and something else that generally has known high availability, such as ping 8.8.8.8 (Google's DNS service)


If you're looking to just monitor your link then ping the next-hop after your modem/router, effectively what your modem/router is using as its default gateway.


Depending on how much access you have to your modem/router you may even be able to tell it to send logs to an rsyslog daemon running on a remote machine.
 
  


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
[SOLVED] My ISP (french ISP Free) is seemingly blocking SSH. Looking for possible workarounds. manu-tm Linux - Networking 20 08-02-2015 10:09 AM
init uptime longer than system uptime? m4rtin Linux - Server 1 09-15-2010 07:45 AM
isp bandwidth monitoring tools in linux salimshahzad Linux - Networking 11 05-14-2010 07:09 PM
Uptime monitoring - best way to perform regular checks yorkshiresteve Linux - Networking 1 01-26-2009 09:30 AM
Simple Network Monitoring (Uptime) drhiii Linux - Networking 1 06-14-2007 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:15 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