Operational monitoring for ActiveMQ

I have been seeing lots of questions regarding monitoring for ActiveMQ. Below are available options for Monitoring ActiveMQ and problem with them.

  • JBoss operational network
    • Pros: Redhat support and email alerts on particular condition or threshold breach
    • Cons: Not freeware and works only with Redhat AMQ version
  • RHQ
    • An upstream project for JBoss Operational network
    • Pros: Free and supports email alerting
    • Cons: very poorly documented and AMQ plugings are not avaialble. You will have to write AMQ plugin for RHQ
  • HAWTIO
    • Pros: Free and easy monitoring tool
    • Cons: No email alert support

So to tackle above problem I have written small script which will allow you to set alerts for various conditions and parameters value for AMQ.

The script takes advantage of jolokia agent which is by default bundled with activemq.  Jolokia agent allows us to get MBeans and Values using HTTP request.

AMQMonitor.py:

The script  is available here on github .

Pros:

  • Email alerts supported
  • No need to contineously monitoring like jconsole or jvisualvm
  • Super simple python script
  • Very flexible alert configuration

Cons:

  • Not tested for other version of ActiveMQ except 5.13.2
  • Needs to be scheduled to periodically run using cron or other way

AMQMonitor.py

Run this file in periodic intervals for operational monitoringRead More »

Configuring Fuse- Basics

Adding Users

Fuse_Installation_directory/etc/users.properties

Users are added as new user on new line as java properties file syntax

username=password,role

Role Based Authentication deserves its own separate post and is available from 6.2 on-wards only

E.g:

MyAdminUser=MyAdminPassword,admin
MyAdminUser2=MyAdminPassowrd2,admin

Editing name of Container

Read More »

Apache Karaf

Apache karaf is OSGi based runtime.
It is where our bundles (OSGi components) run. Fuse uses apache karaf as its OSGi container to make run bundles which collaborate to provide business functionality. So in order to understand fuse we have to understand karaf.

Apache karaf is very small and lightweight OSGi container which runs OSGi bundles ( components which make up our application).

It is built on Felix and  equinox which are OSGi framework.

image
Apache karaf

Read More »

What is ESB ?

ESB in its simplest form is a software architecture model which allows multiple application to communicate.

Nothing great about it?

What if those application were developed in different ages using different technologies? Like some in C, C++, Java etc. and nightmare is not over yet what if everyone needs their input data in their own format and produces output in their own format?What if every application resides on different hosts?

Read More »