While studying the lbelow link for MRTG configuration, I have some questions :
http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/mrtg/mrtg_config_step_5.php
#1 cfgmaker --global 'WorkDir: /var/www/html/mymrtg' --output /etc/mrtg/mymrtg.cfg public@localhost (Create MRTG Configuration)
Q1 : cfgmaker will generate the mymrtg.cfg under server localhost:/etc/mrtg, correct ?
#2 indexmaker --output=/var/www/html/mym
rtg/index.
html /etc/mrtg/mymrtg.cfg (Create a default index page for MRTG Configuration)
Q2 : Indexmaker will create index.html using the configuration /etc/mrtg/mymrtg.cfg, correct ?
#3 cp -av /var/www/html/mrtg/*.png /var/www/html/mymrtg/ (copy tingy png file to mrtg path)
Does it mean some information created in #2 is missing in the index.html ?
# */5 * * * * /usr/bin/mrtg /etc/mrtg/mymrtg.cfg --logging /var/log/mrtg.log (Create crontab for mrtg graph / images get generated every 5 min.)
Schedule to generate the mymrtg.cfg configuration. To my understanding, mymrtg.cfg is only the configuration without any data in it. Where does those living data stay such that #2 Indexmaker can generate the index.html ? Do I misunderstanding anything ? Tks
Yes
No, it just copies over some image files to make the report pretty.
The mrtg process will use the mymrtg.cfg file to query your router and create the index file with this new information.