Jean-Sebastien,

If you specify the actual bean name, you can get the attribute value.

For example,

http://hostname:8080/manager/jmxproxy/?get=java.lang:type=MemoryPool,name=Code%20Cache&att=Usage

OK - Attribute get 'java.lang:type=MemoryPool,name=Code Cache' - Usage= 
javax.management.openmbean.CompositeDataSupport(compositeType=javax.management.openmbean.CompositeType(name=java.lang.management.MemoryUsage,items=((itemName=committed,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),
(itemName=init,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),
(itemName=max,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),
(itemName=used,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)))),contents={committed=4784128,
 
init=2359296, max=50331648, used=4748096})


On Thursday 22 March 2007 16:57, Jean-Sebastien Pilon wrote: 

> Hello,
>
> I am working on some plugins and templates for Nagios and Cacti to
> monitor JVM on our tomcat servers
>
> I am seeking some help to understand how I can get only the Usage values
> off the following MBean query.
>
> http://hostname:8080/manager/jmxproxy/?qry=*%3Atype%3DMemoryPool%2Cname%
> 3DCode%20Cache%2C*

-- 
Nicholas Sushkin, Senior Software Engineer
Open Finance

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to