Extra info - supposedly the underlying date is in Julian format.
EDIT - Nope, debugging ZenJMX shows the date coming in just like JConsole shows -
'Queue Item Last Activity', 'value': 'Thu Jul 29 11:10:03 CDT 2010', 'dpId': 'LastActivity'}
John
I guess I could elaborate huh...
What I'm trying to do is keep track of the last activity and alert if the elapsed time exceeds a threshold - say 30 minutes.
Ideas?
John
ZenJMX just calls toString on the object returned. You would have to modify the code to call the appropriate method on whatever type of object is being returned, assuming it isn't a string to begin with.
Thanks. We've added a new mbean that gives us that 'last activity' value in julian format and with some custom graph defs I'm able to graph and set thresholds for alerting when the value is below 1 - which basically says if the datapoint value == 0 then there hasn't been a change in the time and that's a problem.
Basically, I followed this post -
http://community.zenoss.org/message/32276#32276
and this doc -
http://community.zenoss.org/docs/DOC-2478
to get what I need.
John
|
Follow Us On Twitter »
|
Latest from the Zenoss Blog » |
|
Community | Products | Services Resources | Customers Partners | About Us | |
|
|
|
Copyright © 2005-2010 Zenoss, Inc.
|
||||||