<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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;
}
@page WordSection1 {margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"
}
P.MsoListParagraph {
        FONT-SIZE: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoListParagraph {
        FONT-SIZE: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoListParagraph {
        FONT-SIZE: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman","serif"
}
SPAN.HTMLPreformattedChar {
        FONT-FAMILY: Consolas
}
SPAN.EmailStyle19 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"
}
.MsoChpDefault {
        FONT-SIZE: 10pt
}
</style><style id="owaParaStyle" type="text/css">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body lang="EN-NZ" style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma" vlink="purple" link="blue" fPStyle="1" ocsi="0">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>MRTG will always log two metrics per Target, so you dont really have anything to gain by this.</div>
<div>&nbsp;</div>
<div>However you could add 'noo' to the Options[] line which will suppress display of the outgoing stats.</div>
<div>&nbsp;</div>
<div>Steve</div>
<div><br>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><strong>Steve Shipway</strong></div>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">University of Auckland ITS</div>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><em>UNIX Systems Design Lead</em></div>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">Ph: &#43;64 9 373 7599 ext 86487</div>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><em></em>&nbsp;</div>
</div>
</div>
<div style="FONT-SIZE: 16px; COLOR: #000000; FONT-FAMILY: Times New Roman">
<hr tabindex="-1">
<div id="divRpF822141" style="DIRECTION: ltr"><font face="Tahoma" color="#000000" size="2"><b>From:</b> mrtg-bounces&#43;s.shipway=auckland.ac.nz@lists.oetiker.ch [mrtg-bounces&#43;s.shipway=auckland.ac.nz@lists.oetiker.ch] on behalf of Arvon Griffiths [Arvon.Griffiths@txdot.gov]<br>
<b>Sent:</b> Thursday, 11 November 2010 4:03 a.m.<br>
<b>To:</b> mrtg<br>
<b>Subject:</b> [mrtg] Incoming errors only? gvolk's interface-errors.template<br>
</font><br>
</div>
<div></div>
<div>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>&nbsp;</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>&nbsp;</div>
<div>if ($if_ok) {</div>
<div>&nbsp;</div>
<div>my $target_name = $target_name . &quot;.err&quot;;<br>
my $directory_name = $directory_name . &quot;err&quot;;</div>
<div>&nbsp;</div>
<div>$head_lines .= &lt;&lt;ECHO;<br>
#&nbsp; Input/output errors&nbsp; for $target_name<br>
#---------------------------------------------------------------------<br>
ECHO</div>
<div><br>
$target_lines .= &lt;&lt;ECHO;</div>
<div>&nbsp;</div>
<div>Target[$target_name]: ifInErrors.$if_index&amp;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]: &amp;nbsp;Inbound Error Packets:&amp;nbsp;<br>
LegendO[$target_name]: &amp;nbsp;Outbound Error Packets:&amp;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]: &lt;H1&gt;$router_name $if_ref&lt;/H1&gt;<br>
&lt;TABLE&gt;<br>
&lt;TR&gt;&lt;TD&gt;System:&lt;/TD&gt;&lt;TD&gt;$router_name in $html_syslocation&lt;/TD&gt;&lt;/TR&gt;<br>
&lt;TR&gt;&lt;TD&gt;Maintainer:&lt;/TD&gt;&lt;TD&gt;$html_syscontact&lt;/TD&gt;&lt;/TR&gt;<br>
&lt;TR&gt;&lt;TD&gt;Description:&lt;/TD&gt;&lt;TD&gt; In/Out Error counters &lt;/TD&gt;&lt;/TR&gt;<br>
&lt;TR&gt;&lt;TD&gt;Resource:&lt;/TD&gt;&lt;TD&gt;$if_ref&lt;/TD&gt;&lt;/TR&gt;<br>
&lt;/TABLE&gt;<br>
ECHO<br>
}</div>
<div>&nbsp;</div>
<div>#print $target_lines;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<pre>===================
Texas Transportation Forum
www.texastransportationforum.com
</pre>
</div>
</div>
</div>
<pre>===================
Texas Transportation Forum
www.texastransportationforum.com
</pre>
</div>
</div>
</div>
</body>
</html>