LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-01-2004, 04:47 PM   #1
sealnose
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Angry 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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkdosfs generates invalid boot sector HadroLepton Linux - Newbie 6 10-28-2010 12:26 PM
Cfgmaker for Mrtg pkrishna10 Linux - Newbie 0 12-05-2004 02:57 AM
cfgmaker for mrtg. pkrishna10 Linux - Wireless Networking 0 12-05-2004 02:02 AM
mrtg cfgmaker tarak4u Linux - Networking 2 03-06-2004 04:59 PM
MRTG cfgmaker need help G-Fox Linux - Networking 2 10-03-2003 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration