MRTG Total Traffic Generator v0.2.2
|
|
The MRTG Total Traffic Generator is a small php script that sums up your total traffic over a specified period by using MRTG log files.
Download:
traffic-0.2.2.tar - Released: 23 May 2002
If you are using an older version of php then php-4.1.0 try TTG v0.2, available here.
|
|
README
MRTG TOTAL TRAFFIC GENERATOR v0.2.2
-----------------------------------------------------------------
TOC:
1. GETTING STARTED
2. COMMENTS AND CORRECTIONS
3. LICENSE
4. CHANGES
5. CREDITS
1. GETTING STARTED
To get the calculator up and running untar the archive into the
directory that holds your MRTG log files. The only configuration
needed is in traffic.php, line 16, where you say what your logfiles are
called. F.ex. <input type="checkbox" name="arrLogfileReal[]"
value="SDSL;netopia.log">SDSL. Now just open traffic.php in your
favorite browser and you are set to go.
The traffic2.php is pretty much self explanatory. The only thing that
might confuse you is why I load the values first into an array and then
work my way from there. Well, MRTG adds values at the top of the file
while php reads from top down. Since I have to multiply the average
value of every period of time with the length of the period, this is
the only way I saw fit.
2. COMMENTS AND CORRECTIONS
If you change anything to the better please send me an email so I can
include your change in the next release.
3. LICENSE
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
4. CHANGES
See the CHANGES file.
5. CREDITS
This script was written by Björn Patrick Swift
|
|
CHANGES
v0.2.2
- Version number updated
v0.2.1
- Now uses the $_GET superglobal array to access variables sent
though GET. Fixed for PHP 4.2
v0.2
- Added a "back" link.
- Now you can calculate multiple logfiles at once.
- Now supports logfiles using the "-" character
v0.1
- Initial release.
|
|
back |
bjorn (at) swift . is |