[mrtg] Re: MRTG doesn't work on Redhat 9 (and 8?); SNMP bug?

SHOLAAS Margaret G Margaret.G.SHOLAAS at ris.lane.or.us
Sat Apr 12 01:05:14 MEST 2003


What version of SNMP are you running on your Redhat 8 and 9 machines?

On my Redhat 9 machine I'm trying to use cfgmaker to create a configuration
for monitoring a Cisco router, and cannot get it to find my interfaces by IP
description (what I want), name, or IP address, apparently because the SNMP
queries gathering that information are returning garbage.

I think the problem is with the SNMP query itself (or how the response is
processed by the Redhat 9 SNMP), rather than a problem with the Cisco SNMP,
because on Redhat 7.3, the same command using the same MRTG version works
fine:

[root at myredhat73 root]# cfgmaker --ifref=descr --global "Options[_]:
growright,bits" --global "WorkDir: /var/www/html/mrtg" public at mycisco >
test.cfg
--base: Get Device Info on public at mycisco:
--base: Vendor Id: cisco
--base: Populating confcache
--snpo: confcache public at mycisco: Name Et0 --> 1
--snpo: confcache public at mycisco: Name Et1 --> 2
--snpo: confcache public at mycisco: Name Se0 --> 3
--snpo: confcache public at mycisco: Name Se1 --> 4
--snpo: confcache public at mycisco: Descr Ethernet0 --> 1
--snpo: confcache public at mycisco: Descr Ethernet1 --> 2
--snpo: confcache public at mycisco: Descr Serial0 --> 3
--snpo: confcache public at mycisco: Descr Serial1 --> 4
--snpo: confcache public at mycisco: Ip 10.1.5.2 --> 4
--snpo: confcache public at mycisco: Ip 10.1.7.2 --> 3
--snpo: confcache public at mycisco: Ip 10.3.3.1 --> 1
--snpo: confcache public at mycisco: Type 6 --> 1
--snpo: confcache public at mycisco: Type 6 --> 2 (duplicate)
--snpo: confcache public at mycisco: Type 23 --> 3
--snpo: confcache public at mycisco: Type 23 --> 4 (duplicate)
--snpo: confcache public at mycisco: Eth 00-60-09-c4-04-0e --> 1
--snpo: confcache public at mycisco: Eth 00-60-09-c4-04-0f --> 2
--snpo: confcache public at mycisco: Eth  --> 3
--snpo: confcache public at mycisco: Eth  --> 4 (duplicate)
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifSpeed
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifAlias

Here's part of what happens on Redhat 9. Those numbers after "Ip" are
supposed to be IP addresses; obviously they're not. The numbers following
"-->" are supposed to the SNMP interface numbers; obviously they're not
either.

[root at myredhat9 root]# cfgmaker --ifref=descr --global "Options[_]:
growright,bits" --global "WorkDir: /var/www/html/mrtg" public at mycisco >
test.cfg
[root at risrv572 root]# bash cfgmaker5.bsh
--base: Get Device Info on public at mycisco:
--base: Vendor Id: cisco
--base: Populating confcache
--snpo: confcache public at mycisco: Descr  --> 
--snpo: confcache public at mycisco: Ip 1.0 --> 1
--snpo: confcache public at mycisco: Ip 2.0 --> 255
--snpo: confcache public at mycisco: Ip 3.0 --> 251002268
--snpo: confcache public at mycisco: Ip 4.0 --> 59187
--snpo: confcache public at mycisco: Ip 5.0 --> 1
--snpo: confcache public at mycisco: Ip 6.0 --> 241349170
--snpo: confcache public at mycisco: Ip 7.0 --> 0
--snpo: confcache public at mycisco: Ip 8.0 --> 0
--snpo: confcache public at mycisco: Ip 9.0 --> 9426503
--snpo: confcache public at mycisco: Ip 10.0 --> 11320879
--snpo: confcache public at mycisco: Ip 11.0 --> 148922
--snpo: confcache public at mycisco: Ip 12.0 --> 27446
--snpo: confcache public at mycisco: Ip 13.0 --> 30
--snpo: confcache public at mycisco: Ip 14.0 --> 0
--snpo: confcache public at mycisco: Ip 15.0 --> 0
--snpo: confcache public at mycisco: Ip 16.0 --> 0
--snpo: confcache public at mycisco: Ip 17.0 --> 0
--snpo: confcache public at mycisco: Ip 18.0 --> 0
--snpo: confcache public at mycisco: Ip 19.0 --> 0
--snpo: confcache public at mycisco: Ip 20.1.1.10.1.5.2 --> 10.1.5.2
--snpo: confcache public at mycisco: Ip 20.1.1.10.1.7.2 --> 10.1.7.2
--snpo: confcache public at mycisco: Ip 20.1.1.10.3.3.1 --> 10.3.3.1
--snpo: confcache public at mycisco: Ip 20.1.2.10.1.5.2 --> 4
<snip>

Any suggestions greatly appreciated!

-----Original Message-----
From: James-lists [mailto:hackerwacker at cybermesa.com] 
Sent: Friday, April 11, 2003 3:21 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: MRTG doesn't work on Redhat 9 (and 8?); SNMP bug?

No problems with RH 8 and I am sure there are none with RH 9.
If you would like help, please post any compile or other error messages
you have.

james

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

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