[mrtg] Re: how to poll CRC Errors On Cisco 7513 Routers

Daniel J McDonald dan.mcdonald at austinenergy.com
Mon Aug 22 13:56:35 MEST 2005


On Sun, 2005-08-21 at 13:51 +0000, Farhan . wrote:
>  Dear All 
> 
> i want to know how to make graph of CRC Errors and Drop Packets on Cisco
> 7515Router 

This is my drop template.  You'll also need to
add /usr/share/snmp/mibs/OLD-CISCO-INTERFACES-MIB.my to your LoadMibs:
line
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
# Template for IOS drops
# Dan McDonald - <dmcdonald at austinnetworkdesign.com>
# GPL V2
#
if ($if_ok) {
$target_lines .= <<TONSOSNOT
Target[$target_name]: $if_ref:$router_connect
routers.cgi*ShortDesc[$target_name]: $html_if_snmp_name -
$html_if_snmp_alias
bb*host[$target_name]: $router_name
Directory[$target_name]: $directory_name
MaxBytes[$target_name]: $if_speed
Options[$target_name]: bits
WithPeak[$target_name]: wmy
Title[$target_name]: $html_if_snmp_name - $html_if_snmp_alias
PageTop[$target_name]: <H1>$html_if_snmp_alias - Drops </H1>
TONSOSNOT
;
        if ($if_is_ethernet) {
                $target_name .= "_drop";
                my $maxpps = int($if_speed / 70);
                $target_lines .= <<DROPS
Target[$target_name]: locIfInputQueueDrops$if_ref&locIfOutputQueueDrops
$if_ref:$router_connect
routers.cgi*ShortDesc[$target_name]: Drops $html_if_snmp_name -
$html_if_snmp_alias
bb*host[$target_name]: $router_name
bb*svc[$target_name]: drops
bb*yellow[$target_name]: 1%
bb*red[$target_name]: 2%
Directory[$target_name]: $directory_name
MaxBytes[$target_name]: $maxpps
WithPeak[$target_name]: wmy
YLegend[$target_name]: Drops per second
ShortLegend[$target_name]: Packets
Title[$target_name]: Drops $html_if_snmp_name - $html_if_snmp_alias
PageTop[$target_name]: <H1>$html_if_snmp_alias - Drops </H1>
DROPS
;
        }
}
else {
    $head_lines="";
    $problem_lines="";
    $target_lines="";
    $separator_lines="";
}

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
I thought I had one for CRC errors, but I can't seem to find it right
now...

-- 
Daniel J McDonald, CCIE # 2495, CNX, CISSP # 78281
Austin Energy

dan.mcdonald at austinenergy.com

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list