[mrtg] Unusable cfgmaker file...please help
Ben Rife
brife at integrinets.com
Tue Jul 8 01:19:12 MEST 2003
All,
The following is a script I run to generate .cfg files for my devices
and below is the Bens.Pix.Firewall.cfg file output. I can ping the
firewall and snmpwalk it as well, but I can't get a usable .cfg file.
Can anyone help?
Thanks,
Ben
# Variables
name=Bens.Pix.Firewall
community=viper
deviceip=192.168.1.110
/usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /home/mrtg/html' \
--global 'Options[_]: bits,growright' \
--output /home/mrtg/etc/$name.cfg \
--no-down \
--ifdesc=descr \
--ifref=descr \
--noreversedns \
--subdirs=$name \
$community@$deviceip
/usr/local/mrtg-2/bin/indexmaker \
--section=descr \
--title "MMM Index for "$name \
/home/mrtg/etc/$name.cfg > /home/mrtg/html/subindex.$name.html
[root at mmm scripts]# ping 192.168.1.110
PING 192.168.1.110 (192.168.1.110) 56(84) bytes of data.
64 bytes from 192.168.1.110: icmp_seq=1 ttl=255 time=0.540 ms
64 bytes from 192.168.1.110: icmp_seq=2 ttl=255 time=0.502 ms
--- 192.168.1.110 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.502/0.521/0.540/0.019 ms
[root at mmm scripts]# cat ../etc/Bens.Pix.Firewall.cfg
# Created by
# /usr/local/mrtg-2/bin/cfgmaker --global 'WorkDir: /home/mrtg/html'
--global 'Options[_]: bits,growright' --output
/home/mrtg/etc/Bens.Pix.Firewall.cfg --no-down --ifdesc=descr
--ifref=descr --noreversedns --subdirs=Bens.Pix.Firewall
viper at 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>
Ben Rife, CCIE #5886
Integrity | Networks
Cell: (248) 736-2900
eFax: (360) 397-7463
--
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