predic8 / activemq-nagios-plugin

Nagios Plugins for Monitoring the Apache ActiveMQ Broker
Apache License 2.0
15 stars 19 forks source link

ActiveMQ Nagios Plugin

Monitor Apache ActiveMQ's health, queuesizes and subscribers. The plugin makes use of the Jolokia REST interface.

Requirements (tested with):

nagiosplugin is a Python Framework designed for Nagios Plugins written in Python. It can be installed via pip.

Supported ActiveMQ Versions

The plugin queries ActiveMQ using the new REST based Jolokia interface.

ActiveMQ < 5.8

To use this plugin with an ActiveMQ version earlier than 5.8 you have too add Jolokia support manually.

ActiveMQ < 5.9.1

With version 5.9.1 of ActiveMQ, the Hawtio console was removed. If you run a version of ActiveMQ that still includes Hawtio, you need to supply the --url-tail "hawtio/jolokia/read" parameter to the plugin.

For releases without Hawtio, this paramter can be omitted and defaults to api/jolokia/read.

Installation

  1. Navigate to the folder where your nagios plugins are stored e.g.:
    • cd /usr/lib/nagios/plugins/
    • Download the plugin script:
    • wget https://raw.githubusercontent.com/predic8/activemq-nagios-plugin/master/check_activemq.py
    • Install nagiosplugin for Python:
    • pip install nagiosplugin (systemwide, execute as root) or
    • pip install --user nagiosplugin (for the current user)

Command line options:

Checks

This Plugin currently support 4 different checks listed below. All checks return UNKNOWN if the broker isn't reachable on the network.

queuesize

health

subscriber

exists

subscriber_pending

dlq

Examples. Check