MRTG Configuration

AXISHK
AXISHK used Ask the Experts™
on
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/mymrtg/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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Zephyr ICTCloud Architect

Commented:
Q1 : cfgmaker will generate the mymrtg.cfg under server localhost:/etc/mrtg, correct ?
Yes
Q2 : Indexmaker will create index.html using the configuration /etc/mrtg/mymrtg.cfg, correct ?
Yes
Does it mean some information created in #2 is missing in the index.html ?
No, it just copies over some image files to make the report pretty.
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
The mrtg process will use the mymrtg.cfg file to query your router and create the index file with this new information.

Author

Commented:
"No, it just copies over some image files to make the report pretty." For these image files ,does it generate when indexmaker.



 "The mrtg process will use the mymrtg.cfg file to query your router and create the index file with this new information."

#1 MRTG will generate the index.html file directly. No immediate data will be generated, correct ?
#2, MRTG can generate the index.html. Why do we need indexmaker to generate the index.html ?

Tks
Zephyr ICTCloud Architect

Commented:
#1 No, the indexmaker will make the index, mrtg will deliver the data to the indexmaker (so to speak)
#2 See #1 indexmaker makes the index.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
So, indexmaker will create a index.html - a template with corresponding mrtg data that I want to display. And MRTG will use the template - index.html and generate another file, say index-Incoming.html, correct ?

Tks again.
Cloud Architect
Commented:
The way I understand it is that the index file is being updated every 5 minutes through crontab with new information. So the index is being recreated so to speak...

Author

Commented:
Tks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial