First page Back Continue Last page Overview Graphics

MRTG Configuration


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.