[mrtg] Cat OS 4000 port description 1/1

McDonald, Dan Dan.McDonald at austinenergy.com
Thu Nov 20 14:32:26 CET 2008


On Thu, 2008-11-20 at 08:44 +0100, Jakub M wrote:
> Hello in this fresh morning*
> 
> I have encounterd a problem described in this post pn the list:
> https://lists.oetiker.ch/pipermail/mrtg/2003-July/024907.html
> 
> I have Cat4k switch and I want cfgmaker to obtain normal interface
> names 1/1 1/2 ..., and now i have only some raw port numbers that does
> not give me any information, what chart shows what traffic. Is it
> solvable?

Are you using --ifref=name ?

I used to use this simple --if-template on catos - it seemed to work
fine, but I haven't run catos in years.  Whilst running IOS I use a much
different.

#catos.iftemplate
if (not $problem_lines) { 
$target_lines .= <<ONEINTERFACE
Target[$target_name]: $if_ref:$router_connect
routers.cgi*ShortDesc[$target_name]: $html_if_snmp_name - $if_port_name
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 - $if_port_name 
PageTop[$target_name]: <H1>$if_port_name - Traffic </H1>
ONEINTERFACE
;
}
else {
    $head_lines="";
    $problem_lines="";
    $target_lines="";
    $separator_lines="";
}

-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20081120/aa554e2e/attachment.bin 


More information about the mrtg mailing list