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 ?
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
you might use the HTTP Content Sensor which would then be able to read this value. Best regards
Mar, 2013 - Permalink