<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE>
<!--
-->
</STYLE>
<STYLE>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Verdana}
@font-face
        {font-family:"Arial Narrow"}
@font-face
        {font-family:Webdings}
@font-face
        {font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-right:0cm;
        margin-left:36.0pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
span.HTMLPreformattedChar
        {font-family:Consolas}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</STYLE>
<STYLE id=owaParaStyle type=text/css>P {margin-top:0;margin-bottom:0;}</STYLE>
<META content="MSHTML 6.00.6000.17092" name=GENERATOR></HEAD>
<BODY lang=EN-NZ style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma" vLink=purple link=blue ocsi="0" fpstyle="1">Now that the cfgs are being generated and since outgoing errors are always zero, is there a way to modify the template file to only log incoming errors?<BR><BR>
<DIV style="FONT-SIZE: 13px; COLOR: rgb(0,0,0); DIRECTION: ltr; FONT-FAMILY: Tahoma">
<DIV style="FONT-SIZE: 16px; COLOR: rgb(0,0,0); FONT-FAMILY: Times New Roman">
<DIV>
<DIV> </DIV>
<DIV>Here's the template file:</DIV>
<DIV>###############################################################################<BR>#<BR># interface-errors.template v20030106 by <A href="mailto:gvolk@gvolk.com" target=_blank>gvolk at gvolk.com</A><BR>#<BR># The following is a mrtg template that can be used in conjunction with<BR># cfgmaker for automatically building configs for monitoring interface<BR># errors.<BR>#<BR># Usage: cfgmaker --if-template=interface-errors.template <A href="mailto:public@router" target=_blank>public@router</A><BR>#<BR>#<BR># This template is available under the GNU GPL. For more information, please<BR># see <A href="http://www.gnu.org/copyleft/gpl.html" target=_blank>http://www.gnu.org/copyleft/gpl.html</A>.<BR>#<BR>#z<BR># Version History:<BR># 20020806 - Initial Release<BR># 20030106 - Added GPL Licensing Note<BR>#</DIV>
<DIV> </DIV>
<DIV>if ($if_ok) {</DIV>
<DIV> </DIV>
<DIV>my $target_name = $target_name . ".err";<BR>my $directory_name = $directory_name . "err";</DIV>
<DIV> </DIV>
<DIV>$head_lines .= <<ECHO;<BR># Input/output errors for $target_name<BR>#---------------------------------------------------------------------<BR>ECHO</DIV>
<DIV><BR>$target_lines .= <<ECHO;</DIV>
<DIV> </DIV>
<DIV>Target[$target_name]: ifInErrors.$if_index&ifOutErrors.$if_index:$router_connect * 300<BR>RouterUptime[$target_name]: $router_connect<BR>Directory[$target_name]: $directory_name<BR>YLegend[$target_name]: Error Packets<BR>ShortLegend[$target_name]: /s<BR>Legend1[$target_name]: Error Packets<BR>ShortLegend[$target_name]: /s<BR>Legend1[$target_name]: Error Packets<BR>Legend2[$target_name]:<BR>Legend3[$target_name]: Error Packets<BR>Legend4[$target_name]:<BR>LegendI[$target_name]: &nbsp;Inbound Error Packets:&nbsp;<BR>LegendO[$target_name]: &nbsp;Outbound Error Packets:&nbsp;<BR>MaxBytes[$target_name]: 1000<BR>Options[$target_name]: growright, nopercent, unknaszero<BR>Title[$target_name]: $router_name $if_ref Errors<BR>PageTop[$target_name]: <H1>$router_name $if_ref</H1><BR><TABLE><BR><TR><TD>System:</TD><TD>$router_name in $html_syslocation</TD></TR><BR><TR><TD>Maintainer:</TD><TD>$html_syscontact</TD></TR><BR><TR><TD>Description:</TD><TD> In/Out Error counters </TD></TR><BR><TR><TD>Resource:</TD><TD>$if_ref</TD></TR><BR></TABLE><BR>ECHO<BR>}</DIV>
<DIV> </DIV>
<DIV>#print $target_lines;</DIV>
<DIV> </DIV>
<DIV> </DIV><PRE>===================
Texas Transportation Forum
www.texastransportationforum.com
</PRE></DIV></DIV></DIV><PRE>===================
Texas Transportation Forum
www.texastransportationforum.com
</PRE></BODY></HTML>