ActiveMQMonitor

This monitor tests the availability of an ActiveMQ Broker. The service is considered available if a successful connection is made.

Monitor facts

Class Name

org.opennms.netmgt.poller.monitors.ActiveMQMonitor

Configuration and use

Table 1. Monitor-specific parameters for the ActiveMQMonitor
Parameter Description Default

Required

broker-url

The ActiveMQ Broker URL to connect to.

vm://localhost?create=false&broker.persistent=false

Optional

user

The user name used to log in to the ActiveMQ broker.

n/a

password

The password used to authenticate the user on the ActiveMQ broker.

n/a

use-nodelabel

A boolean to enable using the nodelabel when connecting to the ActiveMQ broker.

false

create-session

A boolean to enable creating a JMS session when connecting to the ActiveMQ broker.

false

client-id

The client ID to use when connecting to the ActiveMQ broker.

n/a

This monitor implements the Common Configuration Parameters.

Examples

Sample configuration on how to configure the monitor in poller-configuration.xml.

Note that you must include the monitor section for each service in your definition.

<service name="ActiveMQ" interval="300000" user-defined="false" status="on">
   <parameter key="broker-url" value="failover://auto+ssl://192.168.1.1:61616/"/>
   <parameter key="use-nodelabel" value="true"/>
</service>

<monitor service="ActiveMQ" class-name="org.opennms.netmgt.poller.monitors.ActiveMQMonitor" />