[mrtg] Re: changing htm name

Chris Kissinger chris at aci.net
Thu Apr 26 20:02:38 MEST 2001


It could be done... but it would require a lot of hacking of mrtg...

$$cfg{'htmldir'}$$rcfg{'directory'}{$router}$router.$$rcfg{'extension'}

This line within MRTG is what is used to open the HTML file, close it,
etc.
there are also similar ones for the images.

Basically you would have to go through the mrtg file and completely
rewrite all the file handling functions.

If you're looking for something easy there's nothing included in MRTG to
do it. You'd be better off writing a script to do an automatic redirect
based on information it can get from the directory or just changing the
default file in IIS.



-----Original Message-----
From: Daniel R . Kilbourne [mailto:drk at voyager.net]
Sent: Thursday, April 26, 2001 7:50 AM
To: Steve Rowe
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: changing htm name



actually.....he may have RTFM because the option you point out to him is
wrong

He is looking to change the file NAME, not the file EXTENSION

As far as I know, this is not possible from mrtg itself

ie: if he has a config thusly:

	Target[target-name]: blah.blah:comm at ip

mrtg will create a page thusly:
	target-name.html (or php if the Extension[target-name]: php
)option is used


What he is looking for is:

	Target[target-name]: blah.blah:comm at ip

	to produce different-target-name.html or
different-target-nam.php


Maybe you should RTFM (as in mail) a little closer before yelling :)




Anyway, not sure if this can be done......





Steve Rowe extolled:
> RTFM!!!!
> 
>
http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/reference.html#extension
> 
-- 
--------------------------------
Daniel R. Kilbourne
daniel.kilbourne at voyager.net
Network Engineering
CoreComm - Formerly Voyager.net
________________________________

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