Monitoring JBoss AS 7 with Munin

Having my JBoss AS 7 up and running, I like to establish a monitoring for the application server. My favorite tool for monitoring is Munin, since it is quite easy to set up. Assuming you have already installed Munin, here are the steps which are needed to add JBoss AS 7.

First get the munin plugin for JBoss AS 7 from https://raw.github.com/lukaf/munin-plugins/master/jboss7_. Copy jboss7_ to /usr/share/munin/plugins

Edit /etc/munin/plugin-conf.d/munin-node and add

[jboss7_*]
env.jboss_username USERNAME
env.jboss_password PASSWORD
env.datasource data-source

where USERNAME and PASSWORD are the configured values you have in mgmt-users.properties. Depending which datasource you have configured in the application container, the value for the datasource has to chosen. You can check this with


wget http://USERNAME:PASSWORD@127.0.0.1:9990/management/subsystem/datasources?include-runtime=true&recursive=true

Next you need to create the symlinks in /etc/munin/plugins:

ln -s /usr/share/munin/plugins/jboss7_ jboss7_mem
ln -s /usr/share/munin/plugins/jboss7_ jboss7_web
ln -s /usr/share/munin/plugins/jboss7_ jboss7_ds

After the configuration is complete you can check with munin-run jboss7_mem that all is correct and restart the munin-node service.

Tagged : , , ,

2 Responses to “Monitoring JBoss AS 7 with Munin”

  1. Richard Anzenberger Says:
    March 21, 2013 at 12:24 pm

    Hello Joe !

    First of all, thanks for plugin.
    I’ve got a problem by implenting the plugin:

    OS=SLES10SP2
    JAVA=1.6.0.30 64 bit
    JBOSS=6.0.1 EAP

    l700ts02:/ # /usr/sbin/munin-run jboss7_web
    Traceback (most recent call last):
    File “/etc/munin/plugins/jboss7_web”, line 17, in ?
    import json
    ImportError: No module named json

    Can you help or hint me ??

    thx and greetings
    Richard

    • The jboss7_ plugin are not based on Java and JMX, but they are using python.
      You’ll need to install a python-specific package with provides.
      In Fedora 19 that is included in python 2.7, but I don’t have any SLES or openSUSE to check.

Leave a Reply




Time limit is exhausted. Please reload CAPTCHA.