<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
man cfgmaker<br>
<br>
<tt> --if-template=templatefile<br>
Replace the normal target entries for
the interfaces<br>
with an entry as specified by the
contents in the file<br>
templatefile. The file is supposed to
contain Perl<br>
code to be executed to generate the
lines for the<br>
target in the configuration file.<br>
(Experimental, under development, might
change)<br>
<br>
........<br>
<br>
<br>
Details on Templates<br>
<br>
The contents of the template files are evaluated as a Perl
program. A<br>
number or Perl variables are available for the program to
read and oth-<br>
ers are used to be written to.<br>
<br>
As quite a few of the predefined variables has values which
are are<br>
supposed to be used in HTML code some of them have an
"HTML-escaped"<br>
variant, e.g $html_syslocation is the HTML escaped variant
of $sysloca-<br>
tion. The HTML escaping means that the chars "<",
">" and "&" are<br>
replaced by "&lt;", "&gt;" and "&amp;" and that
newlines embedded in<br>
the string are prepended with "<BR>" and appended
with a space charac-<br>
ter (if a newline is last in the string it is not touched).<br>
<br>
</tt><br>
<br>
# cat sample_template_file<br>
<br>
$target_lines .= <<ECHO;<br>
PageTop[$target_name]: \\n<br>
<TABLE> \\n<br>
<TR> \\n<br>
<TD colspan=2> <font size=+1><B>
$if_description - $sysname </B> </font> </TD> \\n<br>
<TD> </TD></TR> \\n<br>
<TR> \\n<br>
<TD><font size=+1> Device: </font>
</TD> \\n<br>
<TD><font size=+1> $sysname
</font> </TD> </TR> \\n<br>
<TR> \\n<br>
<TD><font size=+1>
Description:\&nbsp </font> </TD> \\n<br>
<TD><font size=+1> $if_description
</font> </TD> </TR> \\n<br>
<TR> \\n<br>
<TD><font size=+1> Speed </font>
</TD> \\n<br>
<TD><font size=+1> $if_speed_str
</font> </TD> </TR> \\n<br>
</TABLE> \\n<br>
ECHO<br>
<br>
# cfgmaker <tt>--if-template=</tt>sample_template_file
community@router<br>
<br>
-------- Original Message --------<br>
Subject: [mrtg] HTML configuration<br>
From: Jordan C. Bailey <a class="moz-txt-link-rfc2396E" href="mailto:Jordan.Bailey@nationals.com"><Jordan.Bailey@nationals.com></a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:mrtg@lists.oetiker.ch">mrtg@lists.oetiker.ch</a> <a class="moz-txt-link-rfc2396E" href="mailto:mrtg@lists.oetiker.ch"><mrtg@lists.oetiker.ch></a><br>
Date: Wed May 25 12:16:25 2011<br>
<blockquote
cite="mid:2E82116E8BD71D43AAF227EDFA42C0B5191E2F7329@NAT-EX04"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal">Hello!!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am having trouble trying to get my MRTG
HTML page to
display my interfaces as the interface description, and not
just the port
number. I have over 100 devices to monitor and it would be
much much easier if I
could makes changes to how things are displayed. If anyone
could point me to an
advanced configuration manual (how to) or just help with
specific questions
that would be great!!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jordan<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom: 10pt; line-height:
115%;"><b><span style="font-size: 7.5pt; line-height: 115%;
font-family: "Arial","sans-serif";
color: rgb(0, 0, 80);"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<span class="296224611-27112006"><font size="2">
<p style="margin: 6pt 0in 0pt;" class="MsoNormal"><span
style="font-family: Arial;"></span></p>
<p style="margin: 6pt 0in 0pt;" class="MsoNormal"><span
style="font-family: Arial;"></span></p>
<p style="margin: 6pt 0in 0pt;" class="MsoNormal"><span
style="font-family: Arial;"></span></p>
<p style="margin: 6pt 0in 0pt;" class="MsoNormal"><span
style="font-family: Arial;"></span> <a
moz-do-not-send="true"
href="http://washington.nationals.mlb.com/was/ticketing/flex_plans.jsp"><img
moz-do-not-send="true" alt="NatsTown"
src="http://www.lerner.com/NatsTag.gif" hspace="0"
align="baseline" border="0"></a></p>
<p style="margin: 6pt 0in 0pt;" class="MsoNormal"><span
style="font-family: Arial;"><font size="3">202.675.NATS(6287)</font></span></p>
<span style="font-family: Arial;"><font size="3"
color="#000080"><strong><strong><span style="font-family:
Arial; color: navy;"><a moz-do-not-send="true"
style="font-weight: normal;"><span></span></a></span></strong>
<p style="margin: 6pt 0in 0pt;" class="MsoNormal"><strong><span
style="font-family: Arial; color: navy;"><a
moz-do-not-send="true"
href="http://washington.nationals.mlb.com/index.jsp?c_id=was"><span
style="font-weight: normal;">nationals.com</span></a></span></strong><o:p></o:p></p>
</strong></font></span><span style="font-family: Arial;"></span>
<p style="margin: 6pt 0in 0pt;" class="MsoNormal"><span
style="font-family: Arial;">****ATTENTION****</span></p>
<p>This e-mail contains privileged and confidential
information intended exclusively for the use of the
addressee(s) named above. If you are not the intended
recipient of this e-mail, or the employee or agent
responsible for delivering it to the intended recipient, you
are hereby notified that any dissemination, copying or other
use of this e-mail and any attachments hereto is strictly
prohibited. If you have received this e-mail in error,
please notify the sender immediately by telephone and delete
this e-mail and any attachments from your system. Thank you<span
class="296224611-27112006">.</span></p>
</font></span><a moz-do-not-send="true"
title="gfidisc.nationals.com" href="#"> </a>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mrtg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mrtg@lists.oetiker.ch">mrtg@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg">https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Att,
Leonardo Reginin
===============================================================
PROCERGS - Cia. Processamento de Dados do Estado do RS
DPR/SSR - Divisão de Produção/Setor de Suporte e Projeto Redes
Fone: 55(xx51)3210-3138
'A candle loses nothing by lighting another candle' Erin Majors
===============================================================
________________________________________________________________________
O conteúdo desta mensagem é de uso restrito e confidencial, sendo o seu
sigilo protegido por lei. Estas informações não podem ser divulgadas sem
prévia autorização escrita. Se você não é o destinatário desta mensagem,
ou o responsável pela sua entrega, apague-a imediatamente e avise o
remetente, respondendo esta mensagem. A PROCERGS não se responsabiliza
por conclusões, opiniões ou outras informações nesta mensagem que não se
relacionem com sua linha de negócios.
</pre>
</body>
</html>