[mrtg] cfgmaker produces unusable .cfg file

Ben Rife brife at integrinets.com
Sun Jul 6 03:46:41 MEST 2003


I have installed MRTG version 2.9.29 on a Red Hat Linux 9.0 host.
I am trying to MRTG a Cisco PIX Firewall 515 with 6.2 code.
 
If I use the following flags:
 
         --ifdesc=descr
         --ifref=descr
 
The .cfg file produced is below:
 
My concern is with the following section:
 
### Interface 0 >> Descr: '' | Name: '' | Ip: '20.1.4.192.168.1.110' |
Eth: '' #
##
### The following interface is commented out because:
### * has a speed of  which makes no sense
### * --ifref=descr is not unique for this interface
 
Why is this section commented out? It works if I don't use the -ifdesc
and -ifref flags, however, both .cfg files have a strange IP address for
the interfaces. As demonstrated in the above section, the address of the
Interface is 20.1.4.192.168.1.110.
 
I've tried this on different PIX models with the same results.
 
Any ideas or suggestions?
 
Thanks,
 
Ben
 
 
 
# Created by
# /usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /home/mrtg/html'
--global 'O
ptions[_]: bits,growright' --output /home/mrtg/etc/Bens.Pix.Firewall.cfg
--no-do
wn --ifdesc=descr --ifref=descr --noreversedns
--subdirs=Bens.Pix.Firewall viper
@192.168.1.110
 
 
### Global Config Options
 
#  for UNIX
# WorkDir: /home/http/mrtg
 
#  or for NT
# WorkDir: c:\mrtgdata
 
### Global Defaults
 
#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
 
WorkDir: /home/mrtg/html
Options[_]: bits,growright
 
######################################################################
# System: pixfirewall
# Description: Cisco PIX Firewall Version 6.3(1)
#
# Contact: Ben Rife
# Location: Basement
######################################################################
 
 
### Interface 0 >> Descr: '' | Name: '' | Ip: '20.1.4.192.168.1.110' |
Eth: '' #
##
### The following interface is commented out because:
### * has a speed of  which makes no sense
### * --ifref=descr is not unique for this interface
#
# Target[192.168.1.110_0]: 0:viper at 192.168.1.110:
# SetEnv[192.168.1.110_0]: MRTG_INT_IP="20.1.4.192.168.1.110"
MRTG_INT_DESCR=""
# Directory[192.168.1.110_0]: Bens.Pix.Firewall
# MaxBytes[192.168.1.110_0]: 0
# Title[192.168.1.110_0]: 0 -- pixfirewall
# PageTop[192.168.1.110_0]: <H1>0 -- pixfirewall</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>pixfirewall in Basement</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Ben Rife</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD> ()</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>0.0 bits/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>20.1.4.192.168.1.110 ()</TD></TR>
#  </TABLE>
 
 
### Interface 1 >> Descr: '' | Name: '' | Ip: '' | Eth:
'00-04-9a-d0-f7-96' ###
### The following interface is commented out because:
### * --ifref=descr is not unique for this interface
#
# Target[192.168.1.110_1]: 1:viper at 192.168.1.110:
# SetEnv[192.168.1.110_1]: MRTG_INT_IP="" MRTG_INT_DESCR=""
# Directory[192.168.1.110_1]: Bens.Pix.Firewall
# MaxBytes[192.168.1.110_1]: 1250000
# Title[192.168.1.110_1]: 1 -- pixfirewall
# PageTop[192.168.1.110_1]: <H1>1 -- pixfirewall</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>pixfirewall in Basement</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Ben Rife</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
#  </TABLE>
 
 
### Interface 2 >> Descr: '' | Name: '' | Ip: '20.1.2.192.168.1.110' |
Eth: '00-
04-9a-d0-f7-97' ###
### The following interface is commented out because:
### * --ifref=descr is not unique for this interface
#
# Target[192.168.1.110_2]: 2:viper at 192.168.1.110:
# SetEnv[192.168.1.110_2]: MRTG_INT_IP="20.1.2.192.168.1.110"
MRTG_INT_DESCR=""
# Directory[192.168.1.110_2]: Bens.Pix.Firewall
# MaxBytes[192.168.1.110_2]: 1250000
# Title[192.168.1.110_2]: 2 -- pixfirewall
# PageTop[192.168.1.110_2]: <H1>2 -- pixfirewall</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>pixfirewall in Basement</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Ben Rife</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>20.1.2.192.168.1.110 ()</TD></TR>
#  </TABLE>
 
 
### Interface 3 >> Descr: '' | Name: '' | Ip: '' | Eth:
'00-a0-c9-12-fe-be' ###
### The following interface is commented out because:
### * --ifref=descr is not unique for this interface
#
# Target[192.168.1.110_3]: 3:viper at 192.168.1.110:
# SetEnv[192.168.1.110_3]: MRTG_INT_IP="" MRTG_INT_DESCR=""
# Directory[192.168.1.110_3]: Bens.Pix.Firewall
# MaxBytes[192.168.1.110_3]: 1250000
# Title[192.168.1.110_3]: 3 -- pixfirewall
# PageTop[192.168.1.110_3]: <H1>3 -- pixfirewall</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>pixfirewall in Basement</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Ben Rife</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
#  </TABLE>
 
 
### Interface 4 >> Descr: '' | Name: '' | Ip: '' | Eth:
'00-a0-c9-20-33-44' ###
### The following interface is commented out because:
### * --ifref=descr is not unique for this interface
#
# Target[192.168.1.110_4]: 4:viper at 192.168.1.110:
# SetEnv[192.168.1.110_4]: MRTG_INT_IP="" MRTG_INT_DESCR=""
# Directory[192.168.1.110_4]: Bens.Pix.Firewall
# MaxBytes[192.168.1.110_4]: 1250000
# Title[192.168.1.110_4]: 4 -- pixfirewall
# PageTop[192.168.1.110_4]: <H1>4 -- pixfirewall</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>pixfirewall in Basement</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Ben Rife</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
#  </TABLE>
 
 
### Interface 65535 >> Descr: '' | Name: '' | Ip: '20.1.5.192.168.1.110'
| Eth:
'' ###
### The following interface is commented out because:
### * has a speed of  which makes no sense
### * got 'Received SNMP response with error code
###       error status: noSuchName
###       index 1 (OID: 1.3.6.1.2.1.2.2.1.10.65535)
###     SNMPv1_Session (remote host: "192.168.1.110"
[192.168.1.110].161)
###                       community: "viper"
###                      request ID: 837821118
###                     PDU bufsize: 8000 bytes
###                         timeout: 2s
###                         retries: 5
###                         backoff: 1)' from interface when trying to
query
### * --ifref=descr is not unique for this interface
#
# Target[192.168.1.110_65535]: 65535:viper at 192.168.1.110:
# SetEnv[192.168.1.110_65535]: MRTG_INT_IP="20.1.5.192.168.1.110"
MRTG_INT_DESCR
=""
# Directory[192.168.1.110_65535]: Bens.Pix.Firewall
# MaxBytes[192.168.1.110_65535]: 0
# Title[192.168.1.110_65535]: 65535 -- pixfirewall
# PageTop[192.168.1.110_65535]: <H1>65535 -- pixfirewall</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>pixfirewall in Basement</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Ben Rife</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD> ()</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>0.0 bits/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>20.1.5.192.168.1.110 ()</TD></TR>
#  </TABLE>
 

--
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