[mrtg] FW: emergency mrtg help

Matt Walkowiak mwalkowi at intxx.com
Tue Aug 28 22:08:30 MEST 2001


In mrtg, there is a file called indexmaker (in the bin dir) - it looks at
your .cfg file and spits out a nice looking index.html for you!  That way
you can have one index.html page that references everything in your .cfg
file and gives you a nice summary of each interface.  If you want a detailed
report, just click the graph.

indexmaker mrtg.cfg > /var/www/html/index.html
where /var/www/html is your working directory.


Matt

-----Original Message-----
From: shawn xu [mailto:shawnxu2000 at yahoo.com]
Sent: Tuesday, August 28, 2001 2:53 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] emergency mrtg help



Hi, everyone:

I am new to MRTG, and have trouble to continue, so
please help.

I installed MRTG on a RedHat 7.1 machine, and followed
Tobias Oetiker's UNIX MRTG Installation Guide to
configure.  

Every time, I run manually 

cfgmaker --global 'WorkDir: /home/httpd/mrtg'  

          --global 'Options[_]: bits,growright' 

          --output /home/mrtg/cfg/mrtg.cfg    

           public at 66.59.140.3
and

/usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg

it creates new html file like 66.59.140.3_2.html,
66.59.140.3_3.html and ......, it does not overwrite
the first one: 66.59.140.3.html.

Two problems here:

At first, my Apache server does not know
66.59.140.3.html. If I renamed 66.59.140.3.html to
index.html, it is working fine. In httpd.conf file I
configured <VirtualHost 66.59.142.9>
           DocumentRoot /home/httpd/mrtg
           ......
           </VirtualHost>

Secondly, if I changed " DrectoryIndex Index.html " to
"DerectoryIndex 66.59.140.3.html" in httpd.conf file,
66.59.140.3.html can be displayed.

This way my configuration is  still not working,
because I can not add all,like 66.59.140.3_2.html, and
so on, because they are not static.

Anyway, what I did here is that I run cfgmaker and
mrtg to produce html file, then configure Apache
server to provide this html file to be displayed on a
web browser.

Any idea, please help. Thanks in advance.

Shawn Xu




__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list