MRTG for Windows 95, 98, ME

by Jeff Liebermann. Ver 2.01

Introduction

This is a method of running MRTG on a Windoze 95/98/ME machine using batch files instead of RunAsDaemon because the start command does not work as expected.

Create a Batch File to Run.

Create a file with a text editor called MRTGRUN.BAT in the C:\MRTG-2.8.12\RUN  directory containing:
        @echo off
        echo ==============================================
        echo Hit  [Alt][Tab]  to return to Windows desktop.
        echo Hit  [Ctrl][Break]  to manually cycle MRTG.
        echo ==============================================
        break on
        :DOIT
        C:\PERL\BIN\PERL C:\MRTG-2.8.12\RUN\MRTG C:\MRTG-2.8.12\RUN\MRTG.CFG
        SLEEP.EXE 298
        GOTO DOIT
MRTGRUN.BAT can be downloaded from here.
The SLEEP.EXE program is the GNU sleep binary and can be downloaded here .

The 298 is the 300 seconds minus the approximate runtime of MRTG.  This will vary with the speed of the machine and how busy the system appears.

Create a shortcut on the desktop to this batch file by right clicking on the desktop > New > Shortcut that looks like this:

If you want MRTG to start automatically when the computer boots, be sure to add it to the Startup Collection. The easy way is to just copy the shortcut from the desktop to the C:\WINDOWS\START MENU\PROGRAMS\STARTUP directory.

When running, MRTG will appear with the SLEEP program on the task bar. Every 5 minutes, the SLEEP will change to PERL and then RATEUP.

Connect to your Internet Service Provider and generate some traffic. It will take some time to generate enough data for a useful graph. After a while, your graph will look something like this:

Ignore my lousy thruput. Ricochet was having a bad day. 


How to Stop MRTG

To stop MRTG data collection, right-click on the SLEEP button on the Task Bar and select CLOSE

Miscellaneous Drivel and Administrivia.

The latest version of this page is here.
Email comments, corrections, additions and gratuities to Jeff Liebermann
 
  • Revision History