[mrtg] SNMP OID target readout evaluates to rubish

McDonald, Dan Dan.McDonald at austinenergy.com
Tue Feb 3 14:42:42 CET 2009


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 

Note that mrtg is performing an snmpget, not a walk.  Add the instance
value (.1) and see if that returns anything more interesting.

Note also that this particular oid is deprecated, and many versions of
IOS use cpmCPUTotal5minRev instead.  Also, the instance can move about
based on platform.

> Reading out the same OID with snmpwalk works fine:
> C:\mrtg-2.16.2\bin>snmpwalk -c xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx
> 1.3.6.1.4.1.9.9.109.1.1.1.1.5
> cisco.ciscoMgmt.ciscoProcessMIB.ciscoProcessMIBObjects.cpmCPU.cpmCPUTotalTable.cpmCPUTotalEntry.cpmCPUTotal5min.1
> : Gauge32: 3 
> 
> Am I bumping into any restrictions on OID depth here? 
no.

-- 
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/b4a6ae47/attachment.bin 


More information about the mrtg mailing list