[mrtg] Problem: mrtg 2.9.4 cfgmaker uses secondary IP address in target for multiaddress interface
SHOLAAS Margaret G
Margaret.G.SHOLAAS at ris.lane.or.us
Tue Oct 31 18:47:49 MET 2000
SUMMARY:
For interfaces with multiple IP addresses, mrtg 2.9.4
cfgmaker creates a target showing a secondary IP address
as "the" IP address for an interface rather than the
primary IP address.
DETAILS:
Interface TokenRing0 on our Cisco 4700M, router01, has
one primary IP address, 198.77.33.1, and two secondaries,
10.8.1.1 and 194.79.188.1. Here's an excerpt from our
configuration obtained using Cisco's "wr t":
interface TokenRing0
description Main Network
ip address 194.79.188.1 255.255.255.0 secondary
ip address 10.8.1.1 255.255.0.0 secondary
ip address 198.77.33.1 255.255.248.0
When I run cfgmaker to create targets for router01's interfaces
perl cfgmaker public at router01 --ifref=descr
--global "Options[_]: growright,bits"
--global "WorkDir: f:\inetpub\wwwroot\mrtg" > mrtg.cfg
the target for TokenRing0 looks like this, with one of the
secondaries shown as "the" IP address:
### Interface 8 >> Descr: 'TokenRing0' | Name: 'To0' | Ip: '194.79.188.1'
| Eth: '00-0b-5d-47-2d-14' ###
Target[router01_TokenRing0]: \TokenRing0:public at router01
SetEnv[router01_TokenRing0]: MRTG_INT_IP="194.79.188.1"
MRTG_INT_DESCR="TokenRing0"
MaxBytes[router01_TokenRing0]: 2000000
Title[router01_TokenRing0]: Traffic Analysis for TokenRing0 -- router01
PageTop[router01_TokenRing0]: <H1>Traffic Analysis for TokenRing0 --
router01</H1>
<TABLE>
<TR><TD>System:</TD> <TD>router01 in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>TokenRing0 Main Network </TD></TR>
<TR><TD>ifType:</TD> <TD>iso88025TokenRing (9)</TD></TR>
<TR><TD>ifName:</TD> <TD>To0</TD></TR>
<TR><TD>Max Speed:</TD> <TD>16.0 Mbits/s</TD></TR>
<TR><TD>Ip:</TD> <TD>194.79.188.1 ()</TD></TR>
</TABLE>
It would be better if it would use the primary address instead.
Thanks!
Margaret
Margaret Sholaas, System Programmer
Regional Information System (a department of Lane County)
125 E. 8th Ave.
Eugene, OR 97401
VOICE (541) 682-4565
FAX (541) 682-2345
EMAIL Margaret.G.SHOLAAS at RIS.Lane.OR.US
--
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