[mrtg] Re: emergency mrtg help

René Møller rem at dontcare.adsl.dk
Tue Aug 28 22:10:58 MEST 2001


Quite often routers has more than one interface. When u run mrtg, MRTG
makes a page for each interface in your config named 66.59.140.3_2.html
(interface 2), 66.59.140.3_3.html (interface 3) and so on. Cfgmaker adds
a section in the config file for each interface.

The last number in the filename is not an autoincrement number, and if u
link to the file 66.59.140.3_3.html i will show the stats for interface
3. It its usually updated every 5 mins, and is kind of "static".

Regards
Rene Moeller



-----Original Message-----
From: shawn xu [mailto:shawnxu2000 at yahoo.com] 
Sent: 28. august 2001 21:53
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