dpetzel
2011-10-05 01:22:21 UTC
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion
"Re: After zenjmx patch derive/counter still will not graph"
To view the discussion, visit: http://community.zenoss.org/message/61700#61700
--------------------------------------------------------------
The code you pasted doesnt seem to line up with the other post, nor my version of zenjmx.py Near as I can figure from your post, you applied the patched code to the wrong place.
The original post that jplouis helped me with was when I was running on 3.0.3. I did recently upgrade to 3.1 and had to re-apply that fix, but it worked after I re-applied it.
I've just checked my local DEV instance and I think the line numbers may not line up exactly anymore. Here is what mine looks like:
/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg/ZenPacks/zenoss/ZenJMX/zenjmx.py
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61700#61700]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Re: After zenjmx patch derive/counter still will not graph"
To view the discussion, visit: http://community.zenoss.org/message/61700#61700
--------------------------------------------------------------
The code you pasted doesnt seem to line up with the other post, nor my version of zenjmx.py Near as I can figure from your post, you applied the patched code to the wrong place.
The original post that jplouis helped me with was when I was running on 3.0.3. I did recently upgrade to 3.1 and had to re-apply that fix, but it worked after I re-applied it.
I've just checked my local DEV instance and I think the line numbers may not line up exactly anymore. Here is what mine looks like:
/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg/ZenPacks/zenoss/ZenJMX/zenjmx.py
   567        rrdConf = dsConfig.rrdConfig.get(dataPointId)
   568
*Â Â Â 569Â Â Â Â Â Â Â Â type = rrdConf.rrdType*
*Â Â Â 570Â Â Â Â Â Â Â Â if(type in ('COUNTER', 'DERIVE')):*
*Â Â Â 571Â Â Â Â Â Â Â Â Â Â Â Â dpValue = int(float(dpValue))*
   572
   574            log.info(
   575                'No RRD config found for device %s datasource %s datapoint %s' \
   576                % (deviceId, dataSourceId, dataPointId))
   577            return
I've bold my updates per the 'patch'.   568
*Â Â Â 569Â Â Â Â Â Â Â Â type = rrdConf.rrdType*
*Â Â Â 570Â Â Â Â Â Â Â Â if(type in ('COUNTER', 'DERIVE')):*
*Â Â Â 571Â Â Â Â Â Â Â Â Â Â Â Â dpValue = int(float(dpValue))*
   572
   574            log.info(
   575                'No RRD config found for device %s datasource %s datapoint %s' \
   576                % (deviceId, dataSourceId, dataPointId))
   577            return
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61700#61700]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]