[mrtg] FW: SNMP OID target readout evaluates to rubish

McDonald, Dan Dan.McDonald at austinenergy.com
Tue Feb 3 19:28:23 CET 2009


On Tue, 2009-02-03 at 18:07 +0100, Iwan Schuurman wrote:
> Hello again,
> 
> Just upgraded perl to v5.10.0 build 1004 [287188]. Unfortunately without any positive results.

My guess is that your community string contains some character that
needs to be escaped.

> 
> Regards,
> 
> Iwan.
> 
> -----Original Message-----
> From: Iwan Schuurman 
> Sent: Tuesday, February 03, 2009 4:47 PM
> To: 'McDonald, Dan'
> Subject: RE: [mrtg] SNMP OID target readout evaluates to rubish
> 
> Hi Dan,
> 
> Thanks for your suggestions.
> 
> The thing is, I am already using the specific instance in the configuration file:
> Target[xxxxxxxxxxxxxx_cpu]: 1.3.6.1.4.1.9.9.109.1.1.1.1.5.1:xxxxxxxxxxxxxxx at xxxxxxxxxxxxxxxxx:
> 
> Which works fine with snmpget:
> C:\mrtg-2.16.2\bin>snmpget -c xxxxxxxxxxxxx xxxxxxxxxxxxx 1.3.6.1.4.1.9.9.109.1.1.1.1.5.1
> cisco.ciscoMgmt.ciscoProcessMIB.ciscoProcessMIBObjects.cpmCPU.cpmCPUTotalTable.cpmCPUTotalEntry.cpmCPUTotal5min.1 : Gauge32: 2: 
> 
> I also tried the "cpmCPUTotal5minRev" oid:
> C:\mrtg-2.16.2\bin>snmpget -c xxxxxxxxxxxxx xxxxxxxxxxxxx 1.3.6.1.4.1.9.9.109.1.1.1.1.8.1
> cisco.ciscoMgmt.ciscoProcessMIB.ciscoProcessMIBObjects.cpmCPU.cpmCPUTotalTable.cpmCPUTotalEntry.cpmCPUTotal5minRev.1 : Gauge32: 3
> 
> The cause of this problem might be related to the stone age perl version (5.6.1) we're using.
> I am upgrading now and will inform you about the outcome.
> 
> Regards,
> 
> Iwan.
> 
> 
> -----Original Message-----
> From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of McDonald, Dan
> Sent: Tuesday, February 03, 2009 2:43 PM
> To: mrtg at lists.oetiker.ch
> Subject: Re: [mrtg] SNMP OID target readout evaluates to rubish
> 
> On Tue, 2009-02-03 at 03:11 -0800, Iwan wrote:
> > Hi all,
> > 
> > When I execute a SNMP OID target readout in MRTG it evaluates to into 
> > rubish instead of an integer:
> > C:\mrtg-2.16.2\bin>C:\Perl\bin\perl mrtg xxxxxxxxxxxxxx.cfg
> > 2009-02-03 11:14:06: ERROR: Target[xxxxxxxxxxxxxxxx][_IN_] 
> > '1.3.6.1.4.1.9.9.109.1.1.1.1.5. $target->[0]{$mode} ' evaluated to 
> > '☺♥♠☺♦☺
> > m☺☺☺☺♣24 8224863' instead of a number 2009-02-03 11:14:06: ERROR:
> > Target[xxxxxxxxxxxxxxxx][_OUT_] '1.3.6.1.4.1.9.9.109.1.1.1.1.5.
> > $target->[0]{$mode} ' evaluated to '☺♥♠☺♦☺ m☺☺☺☺♣56 4185708' instead 
> > of a number

-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20090203/c9f3d93c/attachment-0001.bin 


More information about the mrtg mailing list