How to connect to JMX agent using python

11,035

Solution 1

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

Solution 2

There is a reference implementation of a WebServices based JMXServer you can deploy on your server. Based on the docs, it is possible to use VB Scripting to invoke JMX operations, so I would assume you could use Python too.

Update:

Jolokia provides an HTTP/REST API to access JMX MBeanServers. This should be easily invoked by a python client.

Share:
11,035
Fanooos
Author by

Fanooos

Updated on July 20, 2022

Comments

  • Fanooos
    Fanooos almost 2 years

    I am working on custom monitoring system to my server.

    the application is developed using python and Django.

    The server is running java web applications and I need to monitor the JVM under which the application server is running, so I start the applications with enable the JMX.

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

    Is there any way to get that?

    I have read about the HtmlAdapterServer, that enable managing JMX MBeans from specific url but I do not know how can I use it?

    Thanks in advance and best regards

  • sm4rk0
    sm4rk0 almost 5 years
    Thanks, but java.net is now closed. The page has been archived, but without the attachments: web.archive.org/web/20120205021705/http://…
  • sm4rk0
    sm4rk0 almost 5 years