Avatar of AXISHK
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/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
LinuxLinux Networking

Avatar of undefined
Last Comment
AXISHK

8/22/2022 - Mon
Zephyr ICT

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.
AXISHK

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
Zephyr ICT

#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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
AXISHK

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.
ASKER CERTIFIED SOLUTION
Zephyr ICT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
AXISHK

ASKER
Tks