Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Syabru Nagios JMX Plugin

Current Version
1.2.0
Last Release Date
2010-05-26
Compatible With
  • Nagios 3.x
Hits
122518
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.
Reviews (3)
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;;
byabrennernj, December 9, 2011
1 of 1 people found this review helpful
I'm using this to monitor heap space usage of Hadoop name nodes and job trackers, and it works well.
bymanu75012, April 14, 2010
0 of 1 people found this review helpful
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.