
Java Applications and Servers
Syabru Nagios JMX Plugin
Description:
Nagios JMX plugin to retrieve and monitor runtime data from Java VM’s and other applications supporting JMX. The plugin supports Nagios performance data and operation invocation on MBeans for resetting statistical data or counters. It also supports regular expression matching for String return values as well as the full Nagios threshold range specification. Object and domain name pattern matching is also supported.
Current Version
1.2.0
Last Release Date
2010-05-26
Compatible With
- Nagios 3.x
Owner
Project Notes
Reviews
(3)
Add a Review
I tested "check_jmx", "check_jmx 2" plugins, and finally this one, which works very well.
- the "check_jmx" plugin couldn't parse correctly the arguments given, and had to apply a hack to obtain perfdata,
- this plugin includes perfdata natively.
Here is an example :
- on nrpe client host :
-- cfg file included by nrpe.cfg :
command[test_check_jmx]=/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:$ARG1$/jmxrmi -O org.apache.camel:context=$ARG2$/mainContext,type=$ARG3$,name="$ARG4$" -A $ARG5$ -w $ARG6$ -c $ARG7$
- on nagios nrpe server :
-- command line test :
./check_nrpe -H 10.20.0.11 -u -c test_check_jmx_dcd_failures -a 10010 satais-esb1 processors threadProcessor FailuresHandled 1 10
-- result :
JMX OK - FailuresHandled = 0 | 'FailuresHandled'=0;1;10;;
- the "check_jmx" plugin couldn't parse correctly the arguments given, and had to apply a hack to obtain perfdata,
- this plugin includes perfdata natively.
Here is an example :
- on nrpe client host :
-- cfg file included by nrpe.cfg :
command[test_check_jmx]=/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:$ARG1$/jmxrmi -O org.apache.camel:context=$ARG2$/mainContext,type=$ARG3$,name="$ARG4$" -A $ARG5$ -w $ARG6$ -c $ARG7$
- on nagios nrpe server :
-- command line test :
./check_nrpe -H 10.20.0.11 -u -c test_check_jmx_dcd_failures -a 10010 satais-esb1 processors threadProcessor FailuresHandled 1 10
-- result :
JMX OK - FailuresHandled = 0 | 'FailuresHandled'=0;1;10;;
Tried with my nagios. It is running in a shell :
[nagios@myserver libexec]$ ./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O "java.lang:type=Memory" -A HeapMemoryUsage -K used
JMX OK - HeapMemoryUsage.used = 605230312 | 'HeapMemoryUsage used'=605230312;;;;
Not working with NRPE :
[nagios@myserver libexec]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_jmx
NRPE: Unable to read output
in my nrpe.cfg :
command[check_jmx]=/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O "java.lang:type=Memory" -A HeapMemoryUsage -K used
I tried to add and differents kinds of ", but did not help. Any help would be great.
[nagios@myserver libexec]$ ./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O "java.lang:type=Memory" -A HeapMemoryUsage -K used
JMX OK - HeapMemoryUsage.used = 605230312 | 'HeapMemoryUsage used'=605230312;;;;
Not working with NRPE :
[nagios@myserver libexec]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_jmx
NRPE: Unable to read output
in my nrpe.cfg :
command[check_jmx]=/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O "java.lang:type=Memory" -A HeapMemoryUsage -K used
I tried to add and differents kinds of ", but did not help. Any help would be great.
Page Sections
Project Stats
Rating
4 (3)
Favorites
2
Views
122,466