|
Packit |
667938 |
Distrib for MRTG contribution.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Introduction
|
|
Packit |
667938 |
------------
|
|
Packit |
667938 |
|
|
Packit |
667938 |
- 'distrib' read mrtg log files and computes traffic distribution in
|
|
Packit |
667938 |
the time. It ouputs a graph with :
|
|
Packit |
667938 |
usage 1 : distrib -i infile -o giffile -w width -h height -t mode -r rate -d count
|
|
Packit |
667938 |
(width / height in pixels)
|
|
Packit |
667938 |
mode : d(ay), w(eek), m(onth), y(ear)
|
|
Packit |
667938 |
count : how many categories of trafic must be taken
|
|
Packit |
667938 |
|
|
Packit |
667938 |
- in x the percentage of trafic utilisation (% bandwith)
|
|
Packit |
667938 |
- in y how many times the utilization was reached (% time)
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
usage 2 : distrib -i infile -o giffile -w width -h height -t x -r top -d count
|
|
Packit |
667938 |
(width / height in pixels)
|
|
Packit |
667938 |
this option builds another graph, with more than interface, but the same informations 'stacked'
|
|
Packit |
667938 |
one on the other ...
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
- 'distrib.pl' use distrib to make a complete html ('distrib.html, distrib.gif') file
|
|
Packit |
667938 |
with all target defined in the file mrtg.cfg (!).
|
|
Packit |
667938 |
|
|
Packit |
667938 |
usage : distrib.pl
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Installation
|
|
Packit |
667938 |
------------
|
|
Packit |
667938 |
|
|
Packit |
667938 |
- distrib uses the GD library, as mrtg does. In order to compile it, you must
|
|
Packit |
667938 |
have the following files :
|
|
Packit |
667938 |
|
|
Packit |
667938 |
GDFONTS.H
|
|
Packit |
667938 |
GDFONTS.C
|
|
Packit |
667938 |
MTABLES.C
|
|
Packit |
667938 |
GD.H
|
|
Packit |
667938 |
GD.C
|
|
Packit |
667938 |
|
|
Packit |
667938 |
and ... distrib.c
|
|
Packit |
667938 |
|
|
Packit |
667938 |
on unix, gcc distrib.c -I/yourgdinclude -L/yourgdlibrary -lgd -lm -o distrib
|
|
Packit |
667938 |
on a PC with NT or 95, make a project with RDLOG2.C, GD.C, GDFONTS.C
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
All suggestions, bugs reports and others are welcome ...
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Philippe Simonet, Philippe.Simonet@swisstelecom.com, 24.06.97
|