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:[EMAIL PROTECTED] 
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:[EMAIL PROTECTED] 

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

[EMAIL PROTECTED] root]# cfgmaker --ifref=descr --global "Options[_]:
growright,bits" --global "WorkDir: /var/www/html/mrtg" [EMAIL PROTECTED] >
test.cfg
--base: Get Device Info on [EMAIL PROTECTED]:
--base: Vendor Id: cisco
--base: Populating confcache
--snpo: confcache [EMAIL PROTECTED]: Name Et0 --> 1
--snpo: confcache [EMAIL PROTECTED]: Name Et1 --> 2
--snpo: confcache [EMAIL PROTECTED]: Name Se0 --> 3
--snpo: confcache [EMAIL PROTECTED]: Name Se1 --> 4
--snpo: confcache [EMAIL PROTECTED]: Descr Ethernet0 --> 1
--snpo: confcache [EMAIL PROTECTED]: Descr Ethernet1 --> 2
--snpo: confcache [EMAIL PROTECTED]: Descr Serial0 --> 3
--snpo: confcache [EMAIL PROTECTED]: Descr Serial1 --> 4
--snpo: confcache [EMAIL PROTECTED]: Ip 10.1.5.2 --> 4
--snpo: confcache [EMAIL PROTECTED]: Ip 10.1.7.2 --> 3
--snpo: confcache [EMAIL PROTECTED]: 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.

[EMAIL PROTECTED] root]# cfgmaker --ifref=descr --global "Options[_]:
growright,bits" --global "WorkDir: /var/www/html/mrtg" [EMAIL PROTECTED] >
test.cfg
[EMAIL PROTECTED] root]# bash cfgmaker5.bsh
--base: Get Device Info on [EMAIL PROTECTED]:
--base: Vendor Id: cisco
--base: Populating confcache
--snpo: confcache [EMAIL PROTECTED]: Descr  --> 
--snpo: confcache [EMAIL PROTECTED]: Ip 1.0 --> 1
--snpo: confcache [EMAIL PROTECTED]: Ip 2.0 --> 255
--snpo: confcache [EMAIL PROTECTED]: Ip 3.0 --> 251002268
--snpo: confcache [EMAIL PROTECTED]: Ip 4.0 --> 59187
<snip>
--snpo: confcache [EMAIL PROTECTED]: Ip 20.1.1.10.1.5.2 --> 10.1.5.2
--snpo: confcache [EMAIL PROTECTED]: Ip 20.1.1.10.1.7.2 --> 10.1.7.2
<snip>

--
Unsubscribe mailto:[EMAIL PROTECTED]
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

Reply via email to