Chris,

I originally had this issue on Zenoss 2.1.0 with CpuTotalUtil as a gauge
counter.  Since then I've updated to 2.1.1 and just this morning I'm
having the same issue with the same set up:

[2007-12-19 14:29:42,472] [INFO ] [pool-2-thread-2]
com.zenoss.zenpacks.zenjmx.Processor:95 - (-1478847105): result:
Summary:
        deviceId: XXX
        objectName: ZZZ
        callSummary: single-value attribute: NumCpu
        runtime: 1910
        callId: -1478847105
        cancelled: false
        results: {NumCpu=2}

[2007-12-19 14:29:42,508] [INFO ] [pool-2-thread-3]
com.zenoss.zenpacks.zenjmx.Processor:95 - (-1845108359): result:
Summary:
        deviceId: XXX
        objectName: java.lang:type=Memory
        callSummary: multi-value attribute: HeapMemoryUsage ([committed,
max, used])
        runtime: 1891
        callId: -1845108359
        cancelled: false
        results: {max=66650112, committed=5472256, used=3786600}

[2007-12-19 14:29:42,628] [INFO ] [pool-2-thread-1]
com.zenoss.zenpacks.zenjmx.Processor:95 - (547598337): result: Summary:
        deviceId: XXX
        objectName: ZZZ
        callSummary: single-value attribute: CpuTotalUtil
        runtime: 2235
        callId: 547598337
        cancelled: false
        results: {CpuTotalUtil=6.341028435549391}

[2007-12-19 14:29:42,636] [WARN ] [pool-2-thread-1]
com.zenoss.zenpacks.zenjmx.Processor:162 - (547598337): data value
'6.341028435549391' cannot be coerced to an integer.  device: XXX; key:
CpuTotalUtil


All of these values are coming from the same jmx session and
CpuTotalUtil and NumCpu are coming from the same object.  The only
difference is one is an integer and one is a float.

Let me know if I can be of any more help,

msk



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 18, 2007 3:57 PM
To: undisclosed-recipients
Subject: Re: [Zenoss] #2474: ZenJMX cannot collect floating point values

#2474: ZenJMX cannot collect floating point values
-----------------------------------+------------------------------------
----
 Reporter:  cluther                |        Owner:  chris     
     Type:  defect                 |       Status:  new       
 Priority:  high                   |    Milestone:  zenoss-2.2
Component:  ZenPack                |      Version:  2.1.1     
 Severity:  1d                     |   Resolution:            
 Keywords:  zenoss-2.1.2-proposed  |  
-----------------------------------+------------------------------------
----
Comment (by chris):

 Hi msk,

 Sorry for the delay...  Can you tell me the rrdType of the
CpuTotalUtil?
 Is it a gauge?  Can you also confirm what version of Zenoss you're
 running?

 Bug #2218 related to integers and longs that are passed up to server,
but
 I don't think it's related to your stack trace because the fix to #2218
 involved passing the value as a String rather than an integer.

 Changeset r7187 is where I added the type conversion from String to
 double/integer, and it was committed before the fix in #2218.

 What confuses me is that the stack trace points to line 162 of
 Processor.java, and the only code in the try-catch block above that can
 generate a NumberFormatException is the call to Double.valueOf.  See
 
http://dev.zenoss.org/trac/browser/tags/zenoss-2.1.1/zenpacks/ZenJMX/src
/com/zenoss/zenpacks/zenjmx/Processor.java?rev=7953
 for the source code.

 I put together a small Java program that just calls
 Double.valueOf("15.232374950768019") and prints out the result and it
 works just fine (as expected).

 Anyhow...  If you can first confirm what version of Zenoss you're
running
 and then tell me the rrdType of your CpuTotalUtil datapoint it would be
 very helpful.

-- 
Ticket URL: <http://dev.zenoss.org/trac/ticket/2474#comment:1>
Zenoss <http://example.com/>
Zenoss Monitoring System
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to