[prev in list] [next in list] [prev in thread] [next in thread]
List: mrtg
Subject: Re: [mrtg] FW: SNMP OID target readout evaluates to rubish
From: "McDonald, Dan" <Dan.McDonald () austinenergy ! com>
Date: 2009-02-03 18:28:23
Message-ID: 1233685703.13845.10.camel () mcdonalddj-dc ! austin-energy ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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@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@lists.oetiker.ch [mailto:mrtg-bounces@lists.oetiker.ch] On \
> Behalf Of McDonald, Dan
> Sent: Tuesday, February 03, 2009 2:43 PM
> To: mrtg@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
["signature.asc" (application/pgp-signature)]
_______________________________________________
mrtg mailing list
mrtg@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic