LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mrtg cfgmaker generates invalid file (https://www.linuxquestions.org/questions/linux-networking-3/mrtg-cfgmaker-generates-invalid-file-176759/)

sealnose 05-01-2004 04:47 PM

mrtg cfgmaker generates invalid file
 
Hello List,
I'm having a problem getting a valid configuration file generated with RH ES 3.0 (taroon).

Using either of these commands:
# cfgmaker --output=/etc/mrtg/localhost.cfg --ifref=ip --global \
"WorkDir: /var/www/mrtg/html/stats" nwoptjm1@localhost

#cfgmaker --output=/etc/mrtg/localhost.cfg --ifref=ip --global \
"workdir: /var/www/mrtg/html/stats" --snmp-options=:::::2c nwoptjm1@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@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

What am I doing wrong? The taroon list is rejecting my posts for some reason.
Thanks in advance!


All times are GMT -5. The time now is 02:47 AM.