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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to