Hi,
I have installed the JMX Mini Probe and I am now trying to add a custom MBean sensor. I managed to monitor simple Mbeans like the following:
Mbean: java.lang:type=Threading Attribute Object Name: ThreadCount
But now I want to monitor MBeans which have more layers, like the following:
java.lang:type=MemoryPool,name="PS Perm Gen" -A Usage -K used -I Usage -J used
The Attribute is 'Usage', but what is the syntax for the Mbean and name in this case ?
A second question, a specific attribute can have multiple channels (like Thanks Grtz, Tom
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
That is not supported at this time, you are correct. It has been added to the TODO list, though.
Mar, 2015 - Permalink
In the meantime, I figured out that the problem was not with the Mbean name java.lang:type=MemoryPool,name="PS Perm Gen" which works correctly, but with the fact that the attribute was not a normal count value.
Instead, tomcat uses multiple keys under the attribut. In JMX, you have to use the -K parameter to specify the key you want to read under the selected attribute.
As far as I can see, this -K parameter is not implemented in the current release of the mini probe.
Full JMX command line to get back what I want:
java.lang:type=MemoryPool,name="PS Perm Gen" -A Usage -K used -I Usage -J used
I think I'll have to wait for a new version which implements this functionality.
Tom
Feb, 2015 - Permalink