May 17, 2015

How to Monitor Network Availability

My adventures with the Internet continue. I decided to get scientific about it though. So I've written a script (in python naturally) to log when the network is down. It does so, by invoking fping in an infinite loop and checking its return code for success, in which case the subprocess module will raise an exception. This exception is caught, the time is logged and the user needs to hit a key to continue. Eventually, I'll probably design a pretty plot, to get some insight as to when the network flakes.

No comments:

Post a Comment