What's new

Sanity checks for USB modem and router

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Pila

Regular Contributor
I have intermitent problems with USB modem and router. Likely, router is not hanged but only USB modem gets confused (for the lack of a better term). In one incident, modem had live Internet link (but OpenVPN would not work over it) and in second instance, I beleive the modem link was dead. Router is not local and nobody can check it if modem link goes down. After a reboot, all is perfect again.

So, my best bet for a start, is to have several different sanity checks croned, and hope I could find symptom and use it to reboot a router. I have just connected there and placed at init-start few common timestamped checks to be piped into a file, and repeated at every 4 hours.

Code:
ip route get 8.8.8.8 | awk 'NR==1 '
curl -s http://icanhazip.com
ping -c1 8.8.8.8 | grep "packets received"

If anybody has any proposal, I am open.

Is there anything I could ask my OpenVPN server to check if it works? Or something to querry my USB 3G modem? Asuswrt-Merlin RT-AC56U_380.59_0
 
All good ideas - maybe add a small file on the router itself, and fetch it on a regular basis, and with a small shell script you can send an alert email to a mailbox (or an SMTP-SMS gateway and have it page you...)

Maybe set up smokeping on a RaspPI with a LAMP install, along with postfix, and smokeping will send the alert for you. All the needed packages there are in Raspbian, and it takes about an hour to setup/config...
 
Remote router must diagnose and solve the problem on itself. My test is running on it.

RPi might be a good idea. I will check that.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top