Sunday, May 12, 2024

May 12 (Sun) – Network Monitoring #1

The good, the bad, and the ugly.

While I’m using my workstation I want to be sure that my web traffic doesn’t leak outside of my VPN connection. Continuous monitoring is the only way to do it. There are web sites that will test your connection and return results that let you know how it’s doing. But stopping what you’re doing and surfing to a web site to check on things gets old quick. There’s a better way.

.

I wrote a script that silently checks my internet connection every 10 seconds or so. If anything is wrong it displays a notification in the corner of my desktop. The script works okay except for the web site it uses to check on things. That web site has a wonky API, sometimes it’s not available so some of the tests fail.

.

24-05-12-my-connection-monitor-json-results.pngSo I’m going to write another script that will use a different web site I found out about earlier today. The only problem is that that web site returns results in json format. The picture on the left shows a bad result (red arrow) and a good result (green arrow). So I have two choices: I can either write a json parser or use one that someone else created. Stay tuned.

Last 8 comments

Admin