Syabru Nagios JMX Plugin

Bookmark and Share

Current Version
1.2.0
Last Release Date
2010-05-26
Compatible With
  • Nagios 3.x
E-mail
Hits
71023
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 (2)
I'm using this to monitor heap space usage of Hadoop name nodes and job trackers, and it works well.
bymanu75012, April 14, 2010
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.