[mrtg] Re: changing htm name
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Fri Apr 27 00:54:29 MEST 2001
David Eshelman wrote:
>
> How would i go about changing the htm filename mrtg creates by default?
>
> EX: Target[router]:
> 1.3.6.1.4.1.9.2.1.8.0&1.3.6.1.4.1.9.2.1.8.0:community at router
>
> this will create router.htm
>
> i want it to create default.asp or default.htm
If I understand you correctly you'd like an option to have several
directories, each having a single target. The directory should
get the name that mrtg would normally use for the target, and the
target should be called default.
I don't think this can be done by cfgmaker (I'm sure somebody will
correct me if I'm wrong) but I do know you need a separate config
file per target. This is because the name will be taken from the
target and you need different names per target.
Probably the best way to go is to write a batch file of your own
that creates the several config files (using parameters). You
could have cfgmaker create a config file and then alter this file
as desired (in your script).
You should set workdir in each file to (for instance) "/www",
alter each "[router]" into "[default]",
add "Extension[default]: asp"
add "Directory[default]: router",
etcetera.
HTH
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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