
Version 2.5.4, October 13th, 1998
|
|
The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing GIF images which provide a LIVE visual representation of this traffic. Check http://www.ee.ethz.ch/stats/mrtg/ for an example. MRTG is based on Perl and C and works under UNIX and Windows NT. MRTG is being successfully used on many sites arrond the net. Check the MRTG-Site-Map.
MRTG consists of a Perl script which uses SNMP to read the traffic counters of your routers and a fast C program which logs the traffic data and creates beautiful graphs representing the traffic on the monitored network connection. These graphs are embedded into webpages which can be viewed from any modern Web-browser In addition to a detailed daily view, MRTG also creates visual representations of the traffic seen during the last seven days, the last four weeks and the last twelve months. This is possible because MRTG keeps a log of all the data it has pulled from the router. This log is automatically consolidated, so that it does not grow over time, but still contains all the relevant data for all the traffic seen over the last two years. This is all performed in an efficient manner. Therefore you can monitor 50 or more network links from any halfway decent UNIX box. MRTG is not limited to monitoring traffic though, it is possible to monitor any SNMP variable you choose. You can even use an external program to gather the data which should be monitored via MRTG. People are using MRTG, to monitor things such as System Load, Login Sessions, Modem availability and more. MRTG even allows you to accumulate two or more data sources into a single graph. |
In 1994 I was working at a site where we had one 64kbit line to the outside world. Obviously everybody was interested in knowing how the link was performing. So I wrote a quick hack which created a constantly updated graph on the web, showing the traffic load on our Internet link. This eventually evolved into a rather configurable Perl script called MRTG-1.0 which I released in spring 1995. After a few updates I left my job at DMU, to start work at the Swiss Federal Institute of Technology. Due to lack of time I had to put MRTG aside. One day in January of 1996, I received email from Dave Rand asking if I had any ideas why MRTG was so slow. Actually I did. MRTG's programming was not very efficient and it was written entirely in Perl. After a week or so, Dave wrote back to me and said he had tried what I had suggested for improving MRTG's speed. Since the changes did not help much, he had decided to rewrite the time-critical sections of MRTG in C. The code was attached to his email. His tool increased the speed of MRTG by a factor of 40! This got me out of my 'MRTG ignorance' and I started to spend my spare time developing of MRTG-2. Soon after MRTG-2 development had begun I started to give beta copies to interested parties. In return I got many feature patches, a lot of user feedback and bug fixes. The product you are getting now is the result of a wonderful collaboration of many people. I would like to take this opportunity to thank them all. (See the files CHANGES and CONTRIBUTORS in the MRTG distribution.) |
|
|
|
Q: I need more documentation ... Q: My perl complains about the SNMP_Session.pm library
... Q: The GIFs created by MRTG look very strange. Not all the
grid lines are drawn and ... Q: What is my Community Name? Q: I compiled your program and I get the following errors: at the command line I typed ./mrtg kirit.cfg and I get :
Can't locate Socket.pm in @INC at /SNMP_Session.pm line 27.
BEGIN failed--compilation aborted at /SNMP_Session.pm line 27.
BEGIN failed--compilation aborted at ./mrtg line 356.
A: You need to get Perl5 installed properly. Socket.pm comes with
Perl5 and is an integral part of Perl5. Perl5 comes
with compiled in defaults about where it should look for its libraries (eg
Socket.pm). Type 'perl -V' to see what your perl assumes ... And
get it fixed ... Eg by installing it properly.If your questions are still not answered, make sure to check out the Official MRTG FAQ Site and browse the MRTG Mailing list Archives. |
There are two mailing lists for MRTG available. One is called 'mrtg' and is a discussion list for users and developers. The other is called 'mrtg-announce' and is a low volume list for MRTG related announcements. To subscribe to these mailing lists, send a message with the subject line subscribe to either mrtg-request@list.ee.ethz.ch or mrtg-announce-request@list.ee.ethz.ch. For posting to the mrtg list use the address mrtg@list.ee.ethz.ch. Further information about the usage of the mailing lists is available by sending a message with the subject line 'help' to either one of the request addresses. For past activity there is also a mailing list archive available: http://www.ee.ethz.ch/~slist/mrtg |
By Stuart Schneider <SchneiS@testlab.orst.edu>
To setup mrtg on a WindowsNT system, you can follow the instructions already provided for UNIX systems with the following addition: 6.5. Change the $main::OS setting at the top of the mrtg script to equal 'NT'. Or, for those who need a little extra help, follow these steps:
If you have any questions about this program,
or have it up and running, |
![]() |
![]() |
![]() |
| 2.5-1998/06/16 | Tobias Oetiker <oetiker@ee.ethz.ch> and Dave Rand <dlr@bungi.com> |
Name Created Size Description
ber.pm 25-Dec-1998 11:06 19,504 Perl package
cfgmaker 25-Dec-1998 15:47 18,386 plain text
cfgmaker.com 10-Apr-2003 11:46 1,595 DCL procedure
hosts.cfg 8-Aug-2003 13:41 22 configuration file
hosts.ok 20-Apr-2004 20:04 0
indexmaker 28-Dec-1998 12:01 3,794 plain text
mibhelp.txt 25-Dec-1998 11:07 6,208 plain text
mrtg-conf.html 25-Dec-1998 11:07 26,540 "Multi Router Traffic Grapher -- Configuration File Format"
mrtg-conf.pod 25-Dec-1998 11:07 19,930 Perl documentation
mrtg-conf.txt 25-Dec-1998 11:07 20,204 plain text
mrtg-l.gif 25-Dec-1998 11:06 1,216 GIF image
mrtg-m.gif 25-Dec-1998 11:06 6,039 GIF image
mrtg-r.gif 25-Dec-1998 11:06 2,994 GIF image
mrtg-ti.gif 25-Dec-1998 11:06 7,331 GIF image
mrtg 9-Aug-2003 16:46 47,429 plain text
mrtg.old 7-Jan-1999 18:50 45,549
mrtg.pl 31-May-2002 19:25 47,429 Perl source
n.cfg 24-Jun-2003 12:39 39,999 configuration file
network_traffic_collector.com 12-Nov-2003 15:42 593 DCL procedure
pdsn.cfg 26-Sep-2003 14:25 815 configuration file
pix.cfg 23-Mar-2000 16:21 1,443 configuration file
pix.ok 20-Apr-2004 20:04 95
rateup.c 16-Oct-2000 14:58 30,652 C source
rateup.exe 25-Dec-1998 11:36 82,944 Executable
readme.html 25-Dec-1998 11:06 24,687 "MRTG-2.5: The Multi Router Traffic Grapher"
readme.logfile-format 25-Dec-1998 11:07 2,874
readme.txt 25-Dec-1998 11:06 20,557 plain text
rtr.cfg 24-Jun-2003 12:40 82,722 configuration file
rtr.ok 20-Apr-2004 20:05 2,411
snmp_session.pm 25-Dec-1998 11:06 17,433 Perl package
sw.cfg 8-Aug-2003 13:41 35,025 configuration file
tsrv-all.html 28-Dec-1998 16:28 6,051 "All Terminal servers"
tsrv.cfg 27-Aug-2002 03:05 44,715 configuration file