GithubHelp home page GithubHelp logo

labynocle / munin-activemq-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kipsnak/munin-activemq-plugin

0.0 3.0 0.0 105 KB

Munin plugin to monitor ActiveMQ message broker.

Perl 100.00%

munin-activemq-plugin's Introduction

Munin ActiveMQ plugin

Display queues status graphs in Munin.

Requirements

Perl modules

WWW::Mechanize

XML::Simple

Plugin install

Debian

Download script

download queue_ script to /usr/share/munin/plugins/queue_ as root

	git clone [email protected]:labynocle/munin-activemq-plugin.git

Install requirements

Test if your system has a required modules by the following command:

	/usr/share/munin/plugins/queue_ autoconf

as result you should have yes, else you can install them:

System:

apt-get install libwww-mechanize-perl

apt-get install libxml-simple-perl

by user:

perl -MCPAN -e "install WWW::Mechanize"

perl -MCPAN -e "install XML::Simple"

you can also use force install:

perl -MCPAN -e "force install XML::Simple"

!! You might have a lot of dependencies to install. !!

=> TODO: use another perl lib with less dependencies

Create symlink

Create a symlink to this script:

cd /etc/munin/plugins/

ln -s /usr/share/munin/plugins/queue_ /etc/munin/plugins/queue_<name.of.my.queue>

if you want display multi-graph for the same ActiveMQ queue try this:

ln -s /usr/share/munin/plugins/queue_ /etc/munin/plugins/queue_<name.of.my.queue>--<what_you_want_to_display>

what_you_want_to_display: could be equal to dequeueCount,enqueueCount and size

Configure graphs

Configure the plugin environment variables:

In your Munin-node, edit the file munin-node in /etc/munin/plugin-conf.d/ and add the following lines:

[queue_*]
	env.host <my.activemq_host>
	env.port <my.activemq.port>
	env.category activemq_queues

here an exemple: [queue_*] env.host 127.0.0.1 env.port 8161 env.category activemq_queues

Test configuration

Test your config: munin-run /etc/munin/plugins/queue_<name.of.my.queue>

Restart Node

Restart your Munin-node: /etc/init.d/munin-node restart

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.