JMX-Http Bridge Plugin Readme

Overview

The JMX / HTTP Bridge exposes Openfire's JMX interface over HTTP, allowing external monitoring and management tools to access metrics and runtime information without requiring a direct JMX connection. This makes it possible to integrate Openfire with HTTP- or JSON-based monitoring systems, even in environments where traditional JMX access is restricted or unavailable.

Features

Installation

  1. Copy the plugin's JAR file into Openfire's plugins/ directory.
  2. The plugin will be automatically deployed by Openfire.
  3. After installation, a new entry labeled "JMX / HTTP Bridge" will appear in the Admin Console under Server Settings.

Upgrading

  1. Obtain the new version of the JMX / HTTP Bridge plugin.
  2. Replace the existing plugin JAR file in the plugins/ directory with the newer version.
  3. Openfire will automatically redeploy the updated plugin.

Configuration

The plugin adds a configuration page to the Openfire Admin Console, which allows you to configure:

For this plugin to be useful, JMX support must be enabled in Openfire. This can be configured on the Server Information page in the Admin Console.

Usage

Once enabled, the bridge exposes JMX data over HTTP at the root context path (/) of the embedded webserver. The interface is fully compatible with the Jolokia API.

Example endpoints include:

Example usage with curl:

curl -u admin:secret \
  "https://example.org:9291/jolokia/read/org.igniterealtime.openfire:type=Statistic,name=sessions"

The Jolokia API is versatile and supports operations such as reading and writing attributes, invoking operations, and listing all available MBeans. Refer to the Jolokia documentation for detailed usage examples.

Security Considerations

Attribution

Highway icons created by maswan - Flaticon