PhiLiZound Software
Index
Page updated: 1-Sep-2010

Monitor Network

Overview

This is a Windows-based script which regularly polls a selection of internet servers and records their response times in a log file; if none of them respond then the internet service is deduced to be 'down'. The log file is appended to every time the program restarts, so is a historic record of your service availability.

Log & bar chart

The program shows the status in the task bar when minimised, so can be a useful indicator if you're doing something locally whilst waiting for the internet to come back up:-

Screenshot

Monitoring is more accurate if you have a router/modem which automatically (re)connects to the internet after a failure without needing the PC; if you use a modem where you have to manually click a 'Connect' button, then the program will think the internet is down when it might not be.

The log file is in CSV format; you can view it with Notepad or Excel, and also convert it into a more readable weekly bar chart using the downloadable Word macro.

The program is a Visual Basic script which may not be all-singing & dancing like others, but it does the job and you can view/edit it with Notepad, customise as reqd. and also see there is nothing underhand about it! You may need to customise it to change the log file folder name, the IP address of your router/modem (if it has one) and the actual internet servers to poll. The script contains further comments to help with this.

Minimum system requirements

Tested on Windows 98SE, ME, XP and Vista.
The up/down status is not displayed in the task bar on Win98SE & ME.

Downloads

MonitorNetwork v8.09: exe  zip - all programs are held on the pCloud.com storage site. If there are problems downloading, check your computer's access or contact me via email address at bottom of this page.
Sample Log & Bar Chart: exe  zip
Word macro (for converting log files into bar chart doc files): txt 

The script & macro are free, but if you pass them on please keep the packages intact.

Installing

  • It is recommended you keep everything under one folder, e.g. 'Network Logs' under My Documents, so create this first.
  • Download either the self-extracting exe file, or the zip file if you have an unzipper such as WinZip.
  • Extract/unzip into the Network Logs folder; the script file MonitorNetwork.vbs will be created.
Before running the script, it may need customising as follows:-
  • Open the script with Notepad and check/change the strDefLogFolder value; it will definitely need changing if you are running under Vista.
  • Find out the fixed IP address of your router/modem (if it has one). You can usually find this by typing the following in a command window:-
    ipconfig /all
    It depends on your router setup, but typical addresses are 192.168.0.1, 192.168.1.1, 10.0.0.138
    You can check it by using 'ping' in a command window, e.g.:-
    ping 192.168.1.1
  • Open the script with Notepad and change the strServiceAddrs(1) value to that address, or if not, set it to blank "" (the comments in the script should explain what to do).
Monitoring is more accurate if you have a fixed router/modem address (this is usually the case if it auto-connects); the monitor can then also poll the router/modem & avoid logging if it is switched off or disconnected. If there is no address to poll then the monitor will just assume the internet is down when it might not be.

To start the program, run or double-click the script file MonitorNetwork.vbs (you can 'right-click' it and click 'Send To, Desktop' to create a shortcut for future use). If you've never run scripts before, you may need to configure your security software to let this script run. You may also see a message advising you to configure your PC by typing the following in a command window (this should only have to be done once):-
cscript //h:cscript

Contact me if you have any problems.

Uninstalling

  • Delete the above files/folders.
  • If you used the cscript command above, then revert by typing the following in a command window:-
    cscript //h:wscript

Phil Tipping, 2007