[mrtg] Re: MRTG + Cisco Catalyst Port Name

Barakat, Mehmet-Hasan hbarakat at kpmg.com
Tue Jul 22 19:14:25 MEST 2003


Here's what I get - exactly the same as yours, except:

1. When I put --ifref=name, all my ports are commented out because "*
--ifref=name is not unique for this interface"
2. I get no port names.

-H

# Created by 
# ./cfgmaker --ifref=name --global 'WorkDir: /www/htdocs/mrtg/mycat6509'
--global 'Options[_]: bits,growright' --output
/www/htdocs/mrtg/mycat6509/mrtg.cfg --no-down ROSTRING @ 10.6.1.xxx

### Interface 3 >> Descr: '' | Name: '' | Ip: '21.1.8.127.1.0.0' | Eth:
'00-01-64-70-52-70' ###
### The following interface is commented out because:
### * --ifref=name is not unique for this interface
# 
# Target[10.6.1.xxx_3]: 3:ROSTRING at 10.6.1.xxx:
# SetEnv[10.6.1.xxx_3]: MRTG_INT_IP="21.1.8.127.1.0.0" MRTG_INT_DESCR=""
# MaxBytes[10.6.1.xxx_3]: 125000000
# Title[10.6.1.xxx_3]: Traffic Analysis for 3 -- mycat6509
# PageTop[10.6.1.xxx_3]: <H1>Traffic Analysis for 3 -- mycat6509</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>mycat6509 in Boston</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Network Systems Group</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>Gigabit Ethernet (117)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>1000.0 Mbits/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>21.1.8.127.1.0.0 ()</TD></TR>
#  </TABLE>



-----Original Message-----
From: Winter, R. Stephen [mailto:SWinter at becu.org] 

This is what I get on my Cat 6500:

# Created by 
# cfgmaker --ifref=name --global 'Options[_]:bits,growright' --no-down
xxxxx at pollux

Target[pollux_5_1]: #5/1:xxxxx at pollux:
SetEnv[pollux_5_1]: MRTG_INT_IP="" MRTG_INT_DESCR=""
MaxBytes[pollux_5_1]: 125000000
Title[pollux_5_1]: Traffic Analysis for 5/1 -- pollux
PageTop[pollux_5_1]: <H1>Traffic Analysis for 5/1 -- pollux</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>pollux in Tukwila Data Center</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>RStephen Winter</TD></TR>
   <TR><TD>Description:</TD><TD>  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>Gigabit Ethernet (117)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>5/1</TD></TR>
   <TR><TD>Port Name:</TD>  <TD>pollux_5-1_1stFlr</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1000.0 Mbits/s</TD></TR>
 </TABLE>


-----Original Message-----
From: Barakat, Mehmet-Hasan [mailto:hbarakat at kpmg.com]
Sent: Tuesday, July 22, 2003 8:45 AM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] MRTG + Cisco Catalyst Port Name


I've been having this issue for a while now. I am running MRTG 2.10.0pre3 on
a RH9 box to graph Catalyst 4000/6000 port utilization. I get all the stats
I need, however, the field for ifName and ifDescr come out blank on the
port-graph page. I would like them to appear in the commonly used <mod/port>
and "CiscoCatalystPortName" format. 

I have tried every possible combination of --ifref=name, --ifref=nr,
--ifref=descr etc. and --ifdesc=name, --ifdesc=descr etc. with no success.

If I use --ifref=name (and some other permutations), inside the .cfg file
I've noticed an error that says it skips all the ports because "ifref=name
is not unique". But my port names should be appearing as 1/1, 1/2, 1/3 and
my descriptions should be Peter's Port, Susan's Printer etc. they are in
most cases unique.

What ends up happening is that I get 300 ports names 192.168.1.1_1 through
300 on the index page, which is no way to monitor ports. Each drill down
graph page then has no identifying feature that tell me it's port 5/34 or
"Susan's Printer" to distinguish it from other ports. 

I've noticed when I run mrtg to create the graphs, the "Walking
CiscoCatalystPortName section skips by really quickly compared to say
"Walking ifspeed". 

Can anyone suggest something to help me out? I want the index page to
classify graphs by <mod/port>.

Thanks!

-Hasan




****************************************************************************
*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.         
****************************************************************************
*

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


*****************************************************************************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.         
*****************************************************************************

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



More information about the mrtg mailing list