Java – list of JMX objects and attributes?

I try to implement a Nagios plug-in, which requires me to clearly know the objects and properties I want to monitor The thing is, I can't find a list of standard system JMX objects and properties anywhere Can anyone point in the right direction? I need to monitor the memory pool, heap size, etc

Solution

You can use mbeanserver at any time queryNames(null,null); Get all MBeans registered in an mbeanserver (where mbeanserver is the mbeanserver connection you get locally or remotely)

However, before implementing your own Nagios plug-in, why not use an existing plug-in? For example Jmx4perl check_ Jmx4perl comes with tools for browsing JMX namespaces (such as jmx4perl < URL > list, which lists all JMX MBeans and their properties and operations, or j4psh JMX shell based JMX shell with context sensitive command line completion)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>