™.. .IX Title "MRTG 1" MRTG - Online Linux Manual PageSection : 1
Updated : 2008-05-16
Source : 2.16.2
Note : mrtg
NAMEmrtg − What is MRTG ?
DESCRIPTION.IX Header "DESCRIPTION" The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network links. MRTG generates HTML pages containing PNG images which provide a LIVE visual representation of this traffic. Check http://www.stat.ee.ethz.ch/mrtg/ to see what it does. Go to
http://oss.oetiker.ch/mrtg for all the details about mrtg.
HIGHLIGHTS.IX Header "HIGHLIGHTS" Portable .IX Item "Portable" MRTG works on most UNIX platforms and Windows NT. Perl .IX Item "Perl" MRTG is written in Perl and comes with full source. Portable SNMP .IX Item "Portable SNMP" MRTG Uses a highly portable SNMP implementation written entirely in Perl (thanks to Simon Leinen). There is no need to install any external SNMP package. SNMPv2c support .IX Item "SNMPv2c support" MRTG can read the new SNMPv2c 64bit counters. No more counter wrapping. Reliable Interface Identification .IX Item "Reliable Interface Identification" Router interfaces can be identified by IP address, description and ethernet address in addition to the normal interface number. Constant size Logfiles .IX Item "Constant size Logfiles" MRTG's logfiles do NOT grow thanks to the use of a unique data consolidation algorithm. Automatic Configuration .IX Item "Automatic Configuration" MRTG comes with a set of configuration tools which make configuration and setup very simple. Performance .IX Item "Performance" Time critical routines are written in C (thanks to the initiative of Dave Rand my Co−Author). GIF free Graphics .IX Item "GIF free Graphics" Graphics are generated directly in PNG format using the GD library by Thomas Boutell. Customizability .IX Item "Customizability" The look of the webpages produced by MRTG is highly configurable. RRDtool .IX Item "RRDtool" MRTG has built-in hooks for using RRDtool. If you are strapped for performance this may help.
DETAILS.IX Header "DETAILS" 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 five 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 200 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.
HISTORY.IX Header "HISTORY" 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 that showed 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 wouldn't be in this state if it hadn't been for the great contributions and support I received from of many people. I would like to take this opportunity to thank them all. (See the files CHANGES for a long list of folk people who helped to make MRTG what it is today.)
Command-line.IX Header "Command-line" Mrtg is also the name of the script you have to run to poll data and generate the graphs. Most configuration is set through the configuration file; some command-line options exist all the same. −−user username and −−group groupname .IX Item "--user username and --group groupname" Run as the given user and/or group. (Unix Only) −−lock−file filename .IX Item "--lock-file filename" Use an alternate lock-file (the default is to use the configuration-file appended with \*(C`_l\*(C'\fR). −−confcache−file filename .IX Item "--confcache-file filename" Use an alternate confcache-file (the default is to use the configuration-file appended with \*(C`.ok\*(C'\fR) −−logging filename|eventlog .IX Item "--logging filename|eventlog" If this is set to writable filename, all output from mrtg (warnings, debug messages, errors) will go to filename. If you are running on Win32 you can specify eventlog instead of a filename which will send all error to the windows event log. NOTE:Note, there is no Message DLL for mrtg. This has the side effect that the windows event logger will display a nice message with every entry in the event log, complaing about the fact that mrtg has no message dll. If any of the Windows folks want to contribute one, they are welcome. −−daemon .IX Item "--daemon" Put MRTG into the background, running as a daemon. This works the same way as the config file option, but the switch is required for proper FHS operation (because /var/run is writable only by root) −−fhs .IX Item "--fhs" Configure all mrtg paths to conform to the FHS specification; http://www.pathname.com/fhs/ −−check .IX Item "--check" Only check the cfg file for errors. Do not do anything. −−pid−file=s .IX Item "--pid-file=s" Define the name and path of the pid file for mrtg running as a daemon −−log−only .IX Item "--log-only" Only update the logfile, do not produce graphics or html pages −−debug=s .IX Item "--debug=s" Enable debug options. The argument of the debug option is a comma separated list of debug values: cfg − watch the config file reading
dir − directory mangeling
base − basic program flow
tarp − target parser
snpo − snmp polling
fork − forking view
time − some timing info
log − logging of data via rateup or rrdtool
Example: −−debug="cfg,snpo"
READ ON.IX Header "READ ON" Learn more about MRTG by going to the mrtg home page on: http://oss.oetiker.ch/mrtg
AUTHOR.IX Header "AUTHOR" Tobias Oetiker <tobi@oetiker.ch> and many contributors 0
Johanes Gumabo
Data Size : 21,503 byte
man-mrtg.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 201,115
Visitor ID : :
Visitor IP : 18.190.253.224 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|mrtg.1|44/45|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|mrtg.1|44/45|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|mrtg.1|49|br══─}─══|'br══─}─══
) (htmlprn|149|mrtg.1|49|'br══─}─══ |'br══─}─══
) (rof_nr_x|149|mrtg.1|55/56|\nF|.if \nF ══─{─══. de IX
) (rof_unit_scale_px|41|mrtg.1|55/56|F|.if \nF ══─{─══. de IX
) (rof_if|19|mrtg.1|55/56|\nF|.if \nF ══─{─══. de IX
) (htmlprn|149|mrtg.1|55/56|.if \nF ══─{─══. de IX|.if \nF ══─{─══. de IX
) (rof_escape_sequence|91|mrtg.1|57|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2"
) (parse_manual_page_|249|mrtg.1|61|══─}─══|.══─}─══
) (htmlprn|149|mrtg.1|61|.══─}─══ |.══─}─══
) (parse_manual_page_|249|mrtg.1|131|IX|.IX Title "MRTG 1"
) (parse_manual_page_|249|mrtg.1|136|IX|.IX Header "DESCRIPTION"
) (parse_manual_page_|249|mrtg.1|146|IX|.IX Header "HIGHLIGHTS"
) (parse_manual_page_|249|mrtg.1|148|IX|.IX Item "Portable"
) (parse_manual_page_|249|mrtg.1|151|IX|.IX Item "Perl"
) (parse_manual_page_|249|mrtg.1|154|IX|.IX Item "Portable SNMP"
) (parse_manual_page_|249|mrtg.1|159|IX|.IX Item "SNMPv2c support"
) (parse_manual_page_|249|mrtg.1|162|IX|.IX Item "Reliable Interface Identification"
) (parse_manual_page_|249|mrtg.1|166|IX|.IX Item "Constant size Logfiles"
) (parse_manual_page_|249|mrtg.1|170|IX|.IX Item "Automatic Configuration"
) (parse_manual_page_|249|mrtg.1|174|IX|.IX Item "Performance"
) (parse_manual_page_|249|mrtg.1|178|IX|.IX Item "GIF free Graphics"
) (parse_manual_page_|249|mrtg.1|182|IX|.IX Item "Customizability"
) (parse_manual_page_|249|mrtg.1|185|IX|.IX Item "RRDtool"
) (parse_manual_page_|249|mrtg.1|189|IX|.IX Header "DETAILS"
) (parse_manual_page_|249|mrtg.1|213|IX|.IX Header "HISTORY"
) (parse_manual_page_|249|mrtg.1|241|IX|.IX Header "Command-line"
) (parse_manual_page_|249|mrtg.1|246|IX|.IX Item "--user username and --group groupname"
) (parse_manual_page_|249|mrtg.1|249|IX|.IX Item "--lock-file filename"
) (rof_escape_sequence|91|mrtg.1|251|\*(C`_l\*(C'\fR). |appended with \f(CW\*(C`_l\*(C'\fR).
) (parse_manual_page_|249|mrtg.1|253|IX|.IX Item "--confcache-file filename"
) (rof_escape_sequence|91|mrtg.1|254|\*(C`.ok\*(C'\fR) |Use an alternate confcache-file (the default is to use the configuration-file appended with \f(CW\*(C`.ok\*(C'\fR)
) (parse_manual_page_|249|mrtg.1|256|IX|.IX Item "--logging filename|eventlog"
) (parse_manual_page_|249|mrtg.1|266|IX|.IX Item "--daemon"
) (parse_manual_page_|249|mrtg.1|271|IX|.IX Item "--fhs"
) (parse_manual_page_|249|mrtg.1|275|IX|.IX Item "--check"
) (parse_manual_page_|249|mrtg.1|278|IX|.IX Item "--pid-file=s"
) (parse_manual_page_|249|mrtg.1|281|IX|.IX Item "--log-only"
) (parse_manual_page_|249|mrtg.1|284|IX|.IX Item "--debug=s"
) (parse_manual_page_|249|mrtg.1|304|IX|.IX Header "READ ON"
) (parse_manual_page_|249|mrtg.1|308|IX|.IX Header "AUTHOR"
)