AXISHK
asked on
MRTG Configuration
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
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
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
ASKER
"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
"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
#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.
#2 See #1 indexmaker makes the index.
ASKER
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.
Tks again.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.