[SOLVED] Monitor and Log Internet Disconnects

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Catsbark
Level 3
Level 3
Posts: 189
Joined: Sat Jan 14, 2017 11:53 pm

[SOLVED] Monitor and Log Internet Disconnects

Post by Catsbark »

In our household, we have several computers (some Windows and one Linux), three smartphones, and a couple of TVs connected to the Internet through our router and cable modem. Recently, we have been experiencing multiple Internet disconnects - usually about two minutes long, and self-reconnecting. I have set up one laptop running Windows + Chrome + Internet Connection Monitor Extension. It correctly noticed a disconnect yesterday evening, but that extension doesn't really keep a good log of time, date, and duration of disconnects. It also doesn't tell me whether the disconnect happened somewhere in my LAN, or if it happened somewhere outside my control.

I hope this forum can guide me to an application (preferably for my Linux box, but something on Windows would be acceptable) that can monitor the connection through my router and cable modem and out into the wide world, identify disconnects and log them, and determine if the disconnect is internal or external. Is this too much to hope for?

Thanks in advance for any help. It probably isn't relevant, since the disconnects occur with all of our connected devices, but here's my system info:

Code: Select all

System:    Kernel: 5.15.0-69-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 
           wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Dell product: Inspiron 5575 v: 1.3.3 serial: <filter> Chassis: 
           type: 10 v: 1.3.3 serial: <filter> 
           Mobo: Dell model: 0M0Y6P v: X01 serial: <filter> UEFI: Dell v: 1.3.3 date: 10/31/2019 
Battery:   ID-1: BAT1 charge: 39.1 Wh condition: 39.1/42.0 Wh (93%) volts: 12.3/11.4 
           model: SDI 0x4D,0x38,0x35,0x34,0x00,0x00,0x00D8 serial: <filter> status: Full 
           Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter> 
           charge: 55% (should be ignored) status: Discharging 
CPU:       Topology: Quad Core model: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx bits: 64 
           type: MT MCP arch: Zen L2 cache: 2048 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31941 
           Speed: 1386 MHz min/max: 1600/2000 MHz Core speeds (MHz): 1: 1366 2: 1364 3: 3468 
           4: 3451 5: 1669 6: 1420 7: 1387 8: 1384 
Graphics:  Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] vendor: Dell 
           driver: amdgpu v: kernel bus ID: 04:00.0 chip ID: 1002:15dd 
           Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: 
           renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.42.0 5.15.0-69-generic LLVM 12.0.0) 
           v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:     Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Dell driver: snd_hda_intel 
           v: kernel bus ID: 04:00.1 chip ID: 1002:15de 
           Device-2: AMD Family 17h HD Audio vendor: Dell driver: snd_hda_intel v: kernel 
           bus ID: 04:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.15.0-69-generic 
Network:   Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169 
           v: kernel port: 2000 bus ID: 02:00.0 chip ID: 10ec:8136 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Dell 
           driver: ath10k_pci v: kernel port: 2000 bus ID: 03:00.0 chip ID: 168c:0042 
           IF: wlp3s0 state: up mac: <filter> 
           Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 3-2.4:6 chip ID: 0cf3:e009 
Drives:    Local Storage: total: 2.27 TiB used: 328.56 GiB (14.1%) 
           ID-1: /dev/nvme0n1 vendor: Crucial model: CT500P1SSD8 size: 465.76 GiB speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> 
           ID-2: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB 
           speed: 6.0 Gb/s serial: <filter> 
           ID-3: /dev/sdb type: USB vendor: Seagate model: BUP Slim SL size: 931.51 GiB 
           serial: <filter> 
Partition: ID-1: / size: 38.17 GiB used: 15.14 GiB (39.7%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: /home size: 418.42 GiB used: 102.04 GiB (24.4%) fs: ext4 dev: /dev/nvme0n1p3 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 chip ID: 1d6b:0002 
           Hub: 1-2:2 info: NEC HighSpeed Hub ports: 4 rev: 2.0 chip ID: 0409:005a 
           Hub: 1-2.1:4 info: NEC HighSpeed Hub ports: 4 rev: 2.0 chip ID: 0409:005a 
           Device-1: 1-2.1.1:5 info: Logitech Unifying Receiver type: Keyboard,Mouse 
           driver: logitech-djreceiver,usbhid rev: 2.0 chip ID: 046d:c534 
           Device-2: 1-2.1.4:6 info: MediaTek Integrated Webcam type: Mass Storage 
           driver: usb-storage rev: 2.0 chip ID: 0e8d:1887 
           Device-3: 1-4:3 info: Realtek Integrated Webcam type: Video driver: uvcvideo rev: 2.0 
           chip ID: 0bda:568a 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 chip ID: 1d6b:0003 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 chip ID: 1d6b:0002 
           Device-4: 3-1:2 info: Seagate RSS LLC Backup Plus Portable Drive type: Mass Storage 
           driver: uas rev: 2.1 chip ID: 0bc2:ab24 
           Hub: 3-2:3 info: Terminus Hub ports: 4 rev: 2.0 chip ID: 1a40:0101 
           Device-5: 3-2.1:4 info: Realtek RTS5129 Card Reader Controller type: <vendor specific> 
           driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc rev: 2.0 chip ID: 0bda:0129 
           Device-6: 3-2.2:5 info: USB 2.0 Hub type: Mouse,HID 
           driver: hid-generic,hid-multitouch,usbhid rev: 2.0 chip ID: 2a94:5249 
           Device-7: 3-2.4:6 info: Qualcomm Atheros type: Bluetooth driver: btusb rev: 2.0 
           chip ID: 0cf3:e009 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 1 rev: 3.1 chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 71 C 
           Fan Speeds (RPM): cpu: 0 
Repos:     No active apt repos in: /etc/apt/sources.list 
           No active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //packages.linuxmint.com una main upstream import backport #id:linuxmint_main
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
Info:      Processes: 333 Uptime: 7h 50m Memory: 7.41 GiB used: 3.50 GiB (47.2%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Client: Unknown python3.8 client 
           inxi: 3.0.38 
Last edited by LockBot on Sat Sep 30, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Catsbark
Dell Inspiron 15; AMD Ryzen 5; LM 20.3 Cinnamon
"A learning experience is one of those things that says, 'You know that thing you just did? Don't do that." - Douglas Adams
Catsbark
Level 3
Level 3
Posts: 189
Joined: Sat Jan 14, 2017 11:53 pm

Re: Monitor and Log Internet Disconnects

Post by Catsbark »

I think I've got the monitoring figured out: I set up an old laptop with LM 20.3 running Google Chrome browser and the Internet Connection Monitor extension. This monitors and logs disconnects from the Internet. The same machine has two Terminal windows open, each running Ping with a 10 second interval - one to my router, one to my cable modem - and logging the results with timestamps to respective text files. Now if I get a disconnect in the browser, I can check the text files to see if there's a corresponding error at the modem or router.

All this seems to be working as expected, but it's an old laptop and the battery is dead, so when the power went off during the night, so did my monitoring. The solution to that would be to buy a new battery, but the display is deteriorating too, and I don't think it would be worth the investment. I have another old laptop, also with a dead battery, with a good display but dead keys in the keyboard. also not worth a new battery. I guess the point of this post is mostly to gripe, but if anyone has comments about my monitoring system, I'd like to hear them.

I'll leave this topic open for another day or two to see if anyone comments, then I guess I'll mark it solved.
Catsbark
Dell Inspiron 15; AMD Ryzen 5; LM 20.3 Cinnamon
"A learning experience is one of those things that says, 'You know that thing you just did? Don't do that." - Douglas Adams
Catsbark
Level 3
Level 3
Posts: 189
Joined: Sat Jan 14, 2017 11:53 pm

Re: Monitor and Log Internet Disconnects

Post by Catsbark »

I had hoped someone would have something to say on this topic, but alas, I guess it is not to be.
Marking it solved.
Catsbark
Dell Inspiron 15; AMD Ryzen 5; LM 20.3 Cinnamon
"A learning experience is one of those things that says, 'You know that thing you just did? Don't do that." - Douglas Adams
Locked

Return to “Networking”