Menu

NagiosSetup

Tobias Frech

Nagios Setup

Install the plugin

Define a check command

Define a command to check a MBeann attribute (e.g. in commands.cfg):

# 'check_mbean_collector' command definition
define command{
        command_name    check_mbean_collector
        command_line    $USER1$/check_mbean_collector -H $HOSTADDRESS$ -p 5566 -m    $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$
        }

Define your service checks

Define a service check for each MBean attribute you want to check:

define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             JBoss Active Threads
        check_command                   check_mbean_collector!jboss.system:type=ServerInfo!ActiveThreadCount!200!400
        }

Some suggestions for MBeans to check are listed in [UsefulMBeans].


Related

Wiki: Home
Wiki: UsefulMBeans