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* TIA This query would return... OK - Number of results: 1 Name: java.lang:type=MemoryPool,name=Code Cache modelerType: sun.management.MemoryPoolImpl Type: NON_HEAP MemoryManagerNames: [Ljava.lang.String;@dac9c8 CollectionUsageThresholdSupported: false Usage: javax.management.openmbean.CompositeDataSupport(compositeType=javax.mana gement.openmbean.CompositeType(name=java.lang.management.MemoryUsage,ite ms=((itemName=committed,itemType=javax.management.openmbean.SimpleType(n ame=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=java x.management.openmbean.SimpleType(name=java.lang.Long)))),contents={comm itted=12288000, init=163840, max=33554432, used=12256768}) Valid: true PeakUsage: javax.management.openmbean.CompositeDataSupport(compositeType=javax.mana gement.openmbean.CompositeType(name=java.lang.management.MemoryUsage,ite ms=((itemName=committed,itemType=javax.management.openmbean.SimpleType(n ame=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=java x.management.openmbean.SimpleType(name=java.lang.Long)))),contents={comm itted=12288000, init=163840, max=33554432, used=12256768}) UsageThresholdCount: 0 UsageThresholdSupported: true UsageThresholdExceeded: true UsageThreshold: 0 Name: Code Cache NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et nest destiné qu'à la personne à qui il est adressé. Si vous nêtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement lexpéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt derreur puisque les informations quil contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]