---
title: "ActiveMQ"
description: ""
url: "https://docs.itrsgroup.com/docs/geneos/7.11.0/collection/activemq/index.html"
---
## Overview

ActiveMQ monitoring is a Gateway configuration file that enables monitoring of ActiveMQ through a set of samplers with customised JMX plug-in settings.

Track the following key areas when using ActiveMQ monitoring:

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                    <thead>
                        <tr class="TableStyle-ref_2_col_table-Head-Header1">
                            <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Key Area</th>
                            <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">Broker</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Shows the memory usage of the broker metrics.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">Queue</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Monitors the queue size and provides information on the messages being processed in the queue.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">Topic</td>
                            <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Tracks the number of consumers and topics that are existing within the broker.</td>
                        </tr>
                        <tr class="TableStyle-ref_2_col_table-Body-Body1">
                            <td class="TableStyle-ref_2_col_table-BodyB-Column1-Body1"> </td>
                            <td class="TableStyle-ref_2_col_table-BodyA-Column1-Body1"> </td>
                        </tr>
                    </tbody>
                </table>
            
</div>

## Intended audience

This guide is intended for users who are setting up, configuring, troubleshooting and maintaining this integration. Once the integration is set up, the samplers providing the dataviews become available to that Gateway.

As a user, you should be familiar with Java, Unix, or any other database, and with the administration of the ActiveMQ services.

## Prerequisites

 
 The following requirements must be met before the installation and setup of the template:


- A machine running the Netprobe must have access to the host where the ActiveMQ instance is installed and the port ActiveMQ is listening to.
- Netprobe 4.6 or higher. The Netprobe running the ActiveMQ Monitoring integration must be configured with a Java environment. See [Configure the Java environment](https://docs.itrsgroup.com/docs/geneos/7.11.0/collection/netprobe/configuration/configure-the-java-environment/index.html).
- Gateway 4.8 or higher.
- ActiveMQ 5.15.3.

## Installation procedure

 Ensure that you have read and can follow the system requirements prior to installation and setup of this integration template.

1. Download the integration package `geneos-integration-activemq-<version>.zip` from the [Downloads](https://resources.itrsgroup.com/downloads) site.
2. Open Gateway Setup Editor.
3. In the **Navigation** panel, click **Includes** to create a new file.
4. Enter the location of the file to include in the **Location** field. In this example, it is the `include/ActiveMQMonitoring.xml`.
5. Update the **Priority** field. This can be any value except `1`. If you input a priority of `1`, the Gateway Setup Editor returns an error.
6. Expand the file location in the **Include** section.
7. Select **Click to load**.
8. Click **Yes** to load the new ActiveMQ include file.

![](https://docscdn.itrsgroup.com/geneos/images/integrations/activemq-ug-load-integration-file.png)

10. Click **Managed entities** in the Navigation panel.
11. Add the **ActiveMQ-Monitoring** type to the Managed Entity section that you will use to monitor ActiveMQ.
12. Click **Validate current document** ![](https://docscdn.itrsgroup.com/geneos/images/Icons/validate22x22.png "icon") to check your configuration.
13. Click **Save current document** ![](https://docscdn.itrsgroup.com/geneos/images/Icons/save16x16.png "icon") to apply the changes.

![](https://docscdn.itrsgroup.com/geneos/images/integrations/activemq-ug-add-managed-entity.png)

### Set up the samplers

These are the pre-configured samplers available to use in `ActiveMQMonitoring.xml`.

Configure the required fields by referring to the table below:

<div class="table-container">
<table class="legacy-table" style="width: 100%;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');margin-left: 0;margin-right: auto;" class="TableStyle-ref_2_col_table" cellspacing="0">
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <thead>
                            <tr class="TableStyle-ref_2_col_table-Head-Header1">
                                <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Samplers</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">ActiveMQ-Broker</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">ActiveMQ-Queues</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">ActiveMQ-Topics</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyA-Column1-Body1"> </td>
                            </tr>
                        </tbody>
                    </table>
                
</div>

### Set up the variables

The `ActiveMQMonitoring.xml` template provides the following variables that are set in the **Environments** section.

<div class="table-container">
<table class="legacy-table" style="width: 100%;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');margin-left: 0;margin-right: auto;" class="TableStyle-ref_2_col_table" cellspacing="0">
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <thead>
                            <tr class="TableStyle-ref_2_col_table-Head-Header1">
                                <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Variable</th>
                                <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ACTIVEMQ_JMX_HOST</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">IP/Hostname to be accessed using JMX plug-in.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ACTIVEMQ_JMX_PORT</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Port to be accessed using JMX.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ACTIVEMQ_BROKER</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Name of the Broker to monitor.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ACTIVEMQ_GROUP</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Sampler group name. </td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyB-Column1-Body1"> </td>
                                <td class="TableStyle-ref_2_col_table-BodyA-Column1-Body1"> </td>
                            </tr>
                        </tbody>
                    </table>
                
</div>

**Note**

  The default values can be changed by providing an environment with the same name with a higher priorty in the set-up file, or by using an environment in the Managed entity where the type is defined. 


### Set up the rules

The `ActiveMQMonitoring-SampleRules.xml` template also provides a separate sample rules that you can use to configure the Gateway Setup Editor.

Your configuration rules must be set in the **Includes** section. In the Navigation panel, click **Rules**.

The included `ActiveMQ-MemoryUsage` rule set-up in the configuration file checks the Broker's memory usage.

## Metrics and dataviews

The sections below list metrics and example dataviews available with the ActiveMQ integration.

### ActiveMQ broker

![ActiveMQ Broker dataview](https://docscdn.itrsgroup.com/geneos/images/integrations/activemq-tr-broker-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <thead>
                            <tr class="TableStyle-ref_2_col_table-Head-Header1">
                                <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name</th>
                                <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">BrokerName</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Name of the broker used.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">StorePercentUsage </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Percent of store limit used.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">TempPercentUsage </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Percent of temp limit used.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">MemoryPercentUsage </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Percent of memory limit used.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyB-Column1-Body1"> </td>
                                <td class="TableStyle-ref_2_col_table-BodyA-Column1-Body1"> </td>
                            </tr>
                        </tbody>
                    </table>
                    
</div>

### ActiveMQ queues

![](https://docscdn.itrsgroup.com/geneos/images/integrations/activemq-tr-queues-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <thead>
                            <tr class="TableStyle-ref_2_col_table-Head-Header1">
                                <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name</th>
                                <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">Name</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Name of the current queue.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ConsumerCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of consumers subscribed to this destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ProducerCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of producers attached to this destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">MaxEnqueueTime </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">The longest time a message was held on this destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">MinEnqueueTime </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">The shortest time a message was held on this destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">AvgEnqueueTime </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Average time a message was held on this destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">MemoryPercentUsage </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">The percentage of the memory limit used.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">Size </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages on this destination, including any that have been dispatched but not acknowledged.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">DequeueCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages that have been acknowledged (and removed) from the destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">DispatchCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages that have been delivered to consumers, including those not acknowledged.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">EnqueueCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages that have been sent to the destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ExpiredCount</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages that have expired.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">InFlightCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages that have been dispatched to, but not acknowledged by, consumers.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyB-Column1-Body1"> </td>
                                <td class="TableStyle-ref_2_col_table-BodyA-Column1-Body1"> </td>
                            </tr>
                        </tbody>
                    </table>
                    
</div>

### ActiveMQ topics

![ActiveMQ Topics dataview](https://docscdn.itrsgroup.com/geneos/images/integrations/activemq-tr-topics-dataview.png)

<div class="table-container">
<table class="legacy-table" style="width: 100%;margin-left: 0;margin-right: auto;mc-table-style: url('../Resources/TableStyles/ref_2_col_table.css');" class="TableStyle-ref_2_col_table" cellspacing="0">
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <col class="TableStyle-ref_2_col_table-Column-Column1"/>
                        <thead>
                            <tr class="TableStyle-ref_2_col_table-Head-Header1">
                                <th class="TableStyle-ref_2_col_table-HeadE-Column1-Header1">Column Name</th>
                                <th class="TableStyle-ref_2_col_table-HeadD-Column1-Header1">Description</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">Name</td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Name of the current topic.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">ConsumerCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of consumers subscribed to this destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">EnqueueCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages that have been sent to the destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyE-Column1-Body1">DequeueCount </td>
                                <td class="TableStyle-ref_2_col_table-BodyD-Column1-Body1">Number of messages that have been acknowledged (and removed) from the destination.</td>
                            </tr>
                            <tr class="TableStyle-ref_2_col_table-Body-Body1">
                                <td class="TableStyle-ref_2_col_table-BodyB-Column1-Body1"> </td>
                                <td class="TableStyle-ref_2_col_table-BodyA-Column1-Body1"> </td>
                            </tr>
                        </tbody>
                    </table>
                    
</div>

