LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   isp uptime monitoring? (https://www.linuxquestions.org/questions/linux-networking-3/isp-uptime-monitoring-4175577623/)

glorsplitz 04-16-2016 07:34 PM

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

mralk3 04-17-2016 08:31 PM

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

glorsplitz 04-18-2016 10:09 AM

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

TenTenths 04-18-2016 11:22 AM

Quote:

Originally Posted by glorsplitz (Post 5532855)
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.


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