To invoke jmx operations on a java/jboss application

Hi All,

Is anyone aware of any ansible modules that could be used to invoke jmx operations on a java/jboss application?

Cheers,

Simon J

No but you can probably run a command line program to do so using script or shell modules.

Not tried it, but it looks like there’s something called jmxquery you could maybe use: see https://blog.outlyer.com/introducing-jmxquery-to-monitor-java-via-python

All the best,

Jon

Hi Jon,

Thanks for the update. Do we need JDK to run the jmxquery tool or JRE is enough?

Cheers,
Joseph

No idea if you need a jdk or a jre - I’ve not used that tool myself, just looked like something that you could use to query jmx from python.

It doesn’t mention needing a jdk, so I’d try installing it and see if it works for you.
All the best,
Jon