[mrtg] Re: Modifying HTML source code
Chris Kissinger
chris at aci.net
Thu Feb 15 20:41:41 MET 2001
check the reference files in the doc folder of mrtg and you'll find:
Extension
By default, mrtg creates .html files. Use this option to tell mrtg to
use a different extension. For example you could set the extension to
php3, then you will be able to enclose PHP tags into the output (usefull
for getting a router name out of a database).
Example:
Extension[ezwf]: phtml
Along with:
PageTop
Things to add to the top of the generated HTML page. Note that you can
have several lines of text as long as the first column is empty.
Note that the continuation lines will all end up on the same line in the
html page. If you want linebreaks in the generated html use the '\n'
sequence.
Example:
PageTop[ezwf]: <H1>Traffic Analysis for ETZ C95.1</H1>
Our Campus Backbone runs over an FDDI line\n
with a maximum transfer rate of 12.5 megabytes per
Second.
and:
PageFoot
Things to add to the bottom of the generated HTML page. Note that you
can have several lines of text as long as the first column is empty.
Note that the continuation lines will all end up on the same line in the
html page. If you want linebreaks in the generated html use the '\n'
sequence.
The material will be added just before the </BODY> tag:
Example:
PageFoot[ezwf]: Contact <A HREF="mailto:peter at x.yz";>Peter</A>
if you have questions regarding this page
even:
AddHead
Use this tag like the PageTop header, but its contents will be added
between </TITLE> and </HEAD>.
Example:
AddHead[ezwf]: <link rev="made" href="mailto:mrtg at blabla.edu";>
BodyTag
BodyTag lets you supply your very own <body ...> tag for the generated
webpages.
Example:
BodyTag[ezwf]: <BODY LEFTMARGIN="1" TOPMARGIN="1"
BACKGROUND="/stats/images/bg.neo2.gif">
-----Original Message-----
From: Patrick MATHEVON [mailto:patrick.mathevon at fra.fr]
Sent: Thursday, February 15, 2001 11:19 AM
To: Mailing List MRTG
Subject: [mrtg] Modifying HTML source code
I'd like to change extension of the file generated by MRTG (I'd like
them to
be ASP file) and to add ASP source code before <HTML>
How is it possible? in CFG file or directly in MRTG source code?
Thanks for your answer
Patrick MATHEVON -FULL RESOURCE ASSOCIATES
173, rue Saint MARTIN - 75002 PARIS
Tél 01 49 96 49 62 / 06 75 05 73 57
Fax 01 49 96 49 48
patrick.mathevon at fra.fr http://www.fra.fr
--
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