[collectd] generic JMX plugin
matthew sporleder
msporleder at gmail.com
Mon Jul 27 21:01:03 CEST 2009
I have a pretty strong need to do some java monitoring and,
unfortunately, I can't get all of the information I need through the
jvm's built-in snmp interface. (all the memory info is there, but I
don't think I can get database thread pools, message queue depths,
hibernate stats, etc)
So what I would really like to see is an snmp-style plugin that spoke JMX.
Define the <Data> to collect in terms of the mbean domain, mbean name,
and attribute name
Then a type, obviously, and the Table feature would be pretty handy as
well for getting values that come back in lists. (although specifying
the specific value to get would also be fine)
committed=1532428288, init=1610612736, max=1532428288, used=974726808
(just part of a javax.management.openmbean.CompositeData jmx answer
from mx4j. Don't even get me started on trying to use the curl plugin
on that)
The last time I checked, OpenNMS was unable to collect data over JMX
if it came back in a complex type, so it must be a somewhat difficult
problem.
<Data "javaoldgen">
Type "javax.management.openmbean.CompositeData"
Table true
MBdomain "java.lang"
MBname "type=MemoryPool,name=PS Old Gen"
MBattribute "Usage"
</Data>
Does anyone have something like this already in the works?
Matt
ref:
http://java.sun.com/javase/6/docs/jre/api/management/JVM-MANAGEMENT-MIB.mib
http://search.cpan.org/~roland/jmx4perl-0.21/lib/JMX/Jmx4Perl.pm
http://blogs.sun.com/jmxetc/entry/what_is_the_jvm_snmp
http://www.jroller.com/maximdim/entry/monitoring_jvm_with_mrtg_part
More information about the collectd
mailing list