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

SHOLAAS Margaret G Margaret.G.SHOLAAS at ris.lane.or.us
Thu Apr 17 19:55:15 MEST 2003


For the sake of anyone finding this in the archives, I found a better
solution (also in the archives,
http://www.ee.ethz.ch/~slist/mrtg/msg23340.html) than changing it in the
profile:

-----Original Message-----
From: Leonard Miller [mailto:Leonard_Miller at udlp.com] 
Subject: Re: [mrtg] Unusual behavior when running mrtg

This has been covered extensively over the past few months, so you're
not the only person that had the problem

In /etc/sysconfig/i18n change the first line from
LANG="en_US.UTF-8" to
LANG="en_US"

Then you "should" be able to do a 
"source /etc/sysconfig/i18n"

If the source command does not work, you will
have to log out and log back in.

Leonard

--
Leonard W. Miller, CCNA
United Defense, L.P.

-----Original Message-----
From: SHOLAAS Margaret G 
 
OK, I found the problem. It's the same problem as folks had who apparently
already had working config files and were reporting "MRTG running, but no
PNG graphs". Solution (from Eric Brander
http://www.ee.ethz.ch/~slist/mrtg/msg21802.html)
is

   LANG='en_US'
   export LANG

   Put that in your /etc/profile

Thanks for everyone's consideration!

Margaret

-----Original Message-----
From: SHOLAAS Margaret G [mailto:Margaret.G.SHOLAAS at ris.lane.or.us] 

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

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

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