Discussion:
After zenjmx patch derive/counter still will not graph
dpetzel
2011-10-05 01:22:21 UTC
Permalink
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
    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'.
--------------------------------------------------------------

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]
Ken Henry
2011-10-05 13:44:18 UTC
Permalink
Ken Henry [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: After zenjmx patch derive/counter still will not graph"

To view the discussion, visit: http://community.zenoss.org/message/61706#61706

--------------------------------------------------------------
Thanks for the reply.

I tried applying the patch you are using, then restarted zenoss and deleted all the graphs I was having trouble with but it does not look like it is working. The graphs only updated once and display NaN for values. Here is my zenjmx.py file is you could take a quick look.

/opt/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.5.3-py2.6.egg/ZenPacks/zenoss/ZenJMX
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61706#61706]

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]
dpetzel
2011-10-05 22:45:03 UTC
Permalink
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/61711#61711

--------------------------------------------------------------
The indendention in the file you attached seemed off to me, I almost would have expected a compilation error, however, based on the way you had it indented it might have caused an abrupt end to the storeRRD method. I'm not that in tune with the inner workings of python, but it is very picky about indentation. I created a version of the file with the proper indendation, lets see if that changes anything.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61711#61711]

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]
Ken Henry
2011-10-06 14:26:51 UTC
Permalink
Ken Henry [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: After zenjmx patch derive/counter still will not graph"

To view the discussion, visit: http://community.zenoss.org/message/61724#61724

--------------------------------------------------------------
Thank you. I did not know python was so picky with indentations. I copied the file in place. Deleted all the derive graphs and restarted zenoss. Unfortuantly I am still getting the same results.

ZenJMX still 'Dropping useless clear event' for all of my derive graphs. I cannot seem to find that phrase in zenjmx.py to further troubleshoot the flow of where this script is dropping off and deciding not to graph these graphs. It actually creates the .rrd files but never updates them after the first connection.

I am at a loss here. I have tried your patch. I have tried downloading the whole zenjmx.py from

http://dev.zenoss.com/trac/changeset/23123 http://dev.zenoss.com/trac/changeset/23123

That does not work either.

I really need this to work.

Any other ideas? Thanks so much
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61724#61724]

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]
dpetzel
2011-10-06 14:30:47 UTC
Permalink
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/61718#61718

--------------------------------------------------------------
No Solid Ideas... Maybe we need to backup a litle bit.

1) Are you able to pull the value of the mbean using jsonsole?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61718#61718]

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]
Ken Henry
2011-10-06 15:01:09 UTC
Permalink
Ken Henry [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: After zenjmx patch derive/counter still will not graph"

To view the discussion, visit: http://community.zenoss.org/message/61725#61725

--------------------------------------------------------------
Yes, I can see the values in the dropping events dialog from the zenjmx log.

This is from running zenjmx from the command line on the host

[2011-10-06 10:18:37,096] [DEBUG] [pool-1-thread-1] com.zenoss.zenpacks.zenjmx.ZenJmxService$JMXCollector:202 - Summary:
        deviceId: host.host.com
        datasourceId: Stale Cache Miss
        objectName: com.host.HOG:type=HogRow,factoryName=HogStats,tableName=package com.host.util.Counts,rowName=CONFIG_STALE_CACHE_MISS
        callSummary: attribute: NumEvents; attribute path ; ([Count of Stale Cache Miss])
        runtime: 4
        callId: -1304017710
        cancelled: false
        results: {Count of Stale Cache Miss=26.0}

This is regular debug

2011-10-06 08:53:47,244 DEBUG zen.zenjmx: Dropping useless clear event {'monitor': 'localhost', 'component': 'JMX', 'manager': 'zenoss.host.host.com', 'value': '2979805.0', 'summary': 'Clear', 'rrdPath': 'Devices/host.host.com', 'datasourceId': 'Config Cache Hit', 'eventKey': 'Config Cache Hit', 'agent': 'zenjmx', 'dpId': 'Count of Config Cache Hits', 'device': 'host.host.com', 'eventClass': '/Status/JMX', 'severity': 0}

{I have replaced some info with dumby hostnames}


I am running regular JMX monitoring template for this same host and it has rrdutil call to graph the value before it has the same dropping useless events.

I am also pulling other custom JMX stats from the same host but the graphs are not DERIVE or COUNTER
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61725#61725]

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]
dpetzel
2011-10-06 15:16:58 UTC
Permalink
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/61719#61719

--------------------------------------------------------------
OK, I'm afraid, I might have declining helpfulness here, but happy to talk through it. I'm grasping at some straws probably, but....
* Your data source name is 'Config Cache Hit'
* The JMX attribute name you're looking to graph is 'Count of Stale Cache Miss'

Questions:
1. What is the *DataPoint* name inside of the datasource you have defined. I feel like I read somewhere that the datapoint name has to match the attribute name exactly.
2. As an extension to that, the ones you have that work, do they contain spaces? I'm curious if the space in the datapoint/attribute name would cause issues. I can't seem to find any attributes with spaces in the templates I have setup.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61719#61719]

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]
Ken Henry
2011-10-06 16:53:50 UTC
Permalink
Ken Henry [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: After zenjmx patch derive/counter still will not graph"

To view the discussion, visit: http://community.zenoss.org/message/61728#61728

--------------------------------------------------------------
I am sorry to confuse you. That was zenjmx log output off of two different datasources. I was just trying to show that zenjmx does actually pull the data correctly but never graphs it and decides to throw it away.

I kind of wondered about the spaces too but I have other datasources for this particular application that have spaces but are gauge graphs and they work fine.

I wish I could somehow debug the script or rrdutil more.

I appreciate your help.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61728#61728]

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]
Ken Henry
2011-10-06 17:59:20 UTC
Permalink
Ken Henry [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: After zenjmx patch derive/counter still will not graph"

To view the discussion, visit: http://community.zenoss.org/message/61730#61730

--------------------------------------------------------------
I think I got this to work. I will report back soon
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61730#61730]

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]
Ken Henry
2011-10-06 18:55:34 UTC
Permalink
Ken Henry [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: After zenjmx patch derive/counter still will not graph"

To view the discussion, visit: http://community.zenoss.org/message/61732#61732

--------------------------------------------------------------
Dpetzel,

Thank you for taking the time to help me out.

I inherited these systems from another user who had originally installed zenoss and zenjmx. Somehow the zenjmx.py that zenoss was using was not within the zenjmx zenpack egg. I found it and patched it and now its working!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61732#61732]

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]
dpetzel
2011-10-06 18:56:58 UTC
Permalink
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/61741#61741

--------------------------------------------------------------
Cool glad its working.

Would you mind sharing how you tracked that down? Im curious how it could be using that file outside of the zenpack
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/61741#61741]

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]
kenhen93
2012-03-22 20:52:01 UTC
Permalink
kenhen93 [http://community.zenoss.org/people/kenhen93] created the discussion

"Re: After zenjmx patch derive/counter still will not graph"

To view the discussion, visit: http://community.zenoss.org/message/65387#65387

--------------------------------------------------------------
Sorry I never updated this. I did locate on all zenjmx files and realized there was another one in another location.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/65387#65387]

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]
Loading...