Hi,

i'd like to monitor some values of a Tomcat Java VM using the JMX Proxy Servlet.

For Example something like this: http://localhost:8080/manager/jmxproxy/?get=java.lang:type=Memory&att=NonHeapMemoryUsage&key=used

As i result i get a the following String as HTML Text: OK - Attribute get 'java.lang:type=Memory' - NonHeapMemoryUsage - key 'used' = 555513208

I'd like to montior only the last Integer in this String that represents Java VM Memory Size.

How can this be done via HTML Sensor ?

Can i use some regex or is this only possible with some scripting ?


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.

Hi,
to obtain the mentioned value, there will be scripting needed, I'm afraid. It is not possible to check this value with native HTTP Sensors. If you are able to modify the output to make the number shown in square brackets , see below

[VALUE]

you might use the HTTP Content Sensor which would then be able to read this value. Best regards


Mar, 2013 - Permalink