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] Sent: Friday, April 11, 2003 4:05 PM To: 'James-lists'; [EMAIL PROTECTED] Subject: [mrtg] Re: MRTG doesn't work on Redhat 9 (and 8?); SNMP bug? 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: [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 --snpo: confcache [EMAIL PROTECTED]: Type 6 --> 1 --snpo: confcache [EMAIL PROTECTED]: Type 6 --> 2 (duplicate) --snpo: confcache [EMAIL PROTECTED]: Type 23 --> 3 --snpo: confcache [EMAIL PROTECTED]: Type 23 --> 4 (duplicate) --snpo: confcache [EMAIL PROTECTED]: Eth 00-60-09-c4-04-0e --> 1 --snpo: confcache [EMAIL PROTECTED]: Eth 00-60-09-c4-04-0f --> 2 --snpo: confcache [EMAIL PROTECTED]: Eth --> 3 --snpo: confcache [EMAIL PROTECTED]: 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. [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 --snpo: confcache [EMAIL PROTECTED]: Ip 5.0 --> 1 --snpo: confcache [EMAIL PROTECTED]: Ip 6.0 --> 241349170 --snpo: confcache [EMAIL PROTECTED]: Ip 7.0 --> 0 --snpo: confcache [EMAIL PROTECTED]: Ip 8.0 --> 0 --snpo: confcache [EMAIL PROTECTED]: Ip 9.0 --> 9426503 --snpo: confcache [EMAIL PROTECTED]: Ip 10.0 --> 11320879 --snpo: confcache [EMAIL PROTECTED]: Ip 11.0 --> 148922 --snpo: confcache [EMAIL PROTECTED]: Ip 12.0 --> 27446 --snpo: confcache [EMAIL PROTECTED]: Ip 13.0 --> 30 --snpo: confcache [EMAIL PROTECTED]: Ip 14.0 --> 0 --snpo: confcache [EMAIL PROTECTED]: Ip 15.0 --> 0 --snpo: confcache [EMAIL PROTECTED]: Ip 16.0 --> 0 --snpo: confcache [EMAIL PROTECTED]: Ip 17.0 --> 0 --snpo: confcache [EMAIL PROTECTED]: Ip 18.0 --> 0 --snpo: confcache [EMAIL PROTECTED]: Ip 19.0 --> 0 --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 --snpo: confcache [EMAIL PROTECTED]: Ip 20.1.1.10.3.3.1 --> 10.3.3.1 --snpo: confcache [EMAIL PROTECTED]: Ip 20.1.2.10.1.5.2 --> 4 <snip> Any suggestions greatly appreciated! -----Original Message----- From: James-lists [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2003 3:21 PM To: [EMAIL PROTECTED] 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:[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 -- 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 -- 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
