mrtg cfgmaker output file invalid
John Meagher
jmeagher at patriot.net
Sun May 2 13:22:44 UTC 2004
Hello List,
I'm having a problem getting a valid configuration
file generated. While the problem is on an RH ES 3
system, I've been unable to get the taroon list to
process my post, and I suspect the problem is me, not
redhat anyway.
Using either of these commands:
# cfgmaker --output=/etc/mrtg/localhost.cfg \
--ifref=ip --global \
"WorkDir: /var/www/mrtg/html/stats" nwoptjm1 at localhost
#cfgmaker --output=/etc/mrtg/localhost.cfg \
--ifref=ip --global \
"workdir: /var/www/mrtg/html/stats" \
--snmp-options=:::::2c nwoptjm1 at localhost
---Results in both of the 2 fe interfaces sections in the
resulting config file looking like this:
### Interface 4 >> Descr: '' | Name: '' | Ip: '192.168.10.181' | 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.4)
### SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
### community: "nwoptjm1"
### request ID: -1403466218
### PDU bufsize: 8000 bytes
### timeout: 2s
### retries: 5
### backoff: 1)' from interface when trying to query
#
# Target[localhost_192.168.10.181]: /192.168.10.181:nwoptjm1 at localhost:
# SetEnv[localhost_192.168.10.181]: MRTG_INT_IP="192.168.10.181"
MRTG_INT_DESCR=
""
# MaxBytes[localhost_192.168.10.181]: 0
SNMP walk looks like this:
[5:50pm]# snmpwalk -v 2c -c nwoptjm1 localhost interface
IF-MIB::ifNumber.0 = INTEGER: 3
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:d0:b7:b8:a4:78
IF-MIB::ifPhysAddress.3 = STRING: 0:2:b3:33:7e:5b
---stuff deleted here for brevity---
I'm using these rpms--
rpm -qa |grep snmp
net-snmp-utils-5.0.8-11
net-snmp-5.0.8-11
rpm -qa | grep mrtg
mrtg-2.9.29-4.ent
Also using LANG="eng_us" in /etc/sysconfig/i8n.
What am I doing wrong? Thanks in advance!
More information about the users
mailing list