How to connect to JMX agent using python

I am working on my own monitoring system on my server.

application is developed using python and Django.

The server is running java web applications, and I need to track the JVM under which the application server is running, so I am running JMX-enabled applications.

Now I need to connect my python application to the JVM JMX agent.

Is there any way to get this?

I read about the HtmlAdapterServer that allow you to control JMX MBeans from a specific URL, but I don't know how to use it?

Thanks in advance and best wishes.

+7
java python django jmx
source share
4 answers

How about using Jython? http://www.jython.org/

+4
source share

There is a reference WebServices-based JMXServer implementation that you can deploy to your server. Based on the docs, you can use VB Scripting to invoke JMX operations, so I assume you can use Python as well.

Update:

Jolokia provides an HTTP / REST API for accessing JMX MBeanServers. This should be easily invoked by the Python client.

+2
source share

Jpype is another option. Start jvm and java code to get sea water monitoring data. http://jpype.sourceforge.net/

0
source share

https://pypi.org/project/jmxquery/

We can use it

.............................

0
source share

All Articles