First page Back Continue Last page Overview Graphics
MRTG Configuration
MRTG Documentation pack is available at:
- http://people.ee.ethz.ch/~oetiker/webtools/mrtg/#START
Two very simple tools to get you up and running:
Can then create an rc script for mrtg, or put it in a cronjob.
- Does not need to run as root!
- By default, it performs 5 minute averages.
- Crontab entry: */5 * * * * /usr/bin/mrtg /etc/mrtg.cfg
Notes:
D. Configuration
i. cfgmaker --community=public --global "Options[_]: growright,bits" --ifref=eth --ifdesc=ip gateway.example.com --ifref=descr --ifdesc=descr cisco-sw.example.com --output /etc/mrtg.cfg
a) One can have multiple configuration files, thus allowing one to create a website of MRTG graphs, each with its own page.
ii. indexmaker --output=/var/www/mrtg/index.html /etc/mrtg.cfg
iii. Add this line to a crontab:
a) **/5 * * * * /usr/bin/mrtg /etc/mrtg.cfgg
b) One should also run that command from the command line three times before cron does it. It will collect data, perform a calculation of averages and generates the graphs. Since this if the first time it is run, there will be no prior data for it to average. That is why it will give errors the first two times it is run.