Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Syabru Nagios JMX Plugin
1.2.0
2010-05-26
- Nagios 3.x
122409
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!
Reviews (3)
bybenbugohit, March 4, 2014
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;;
I'm using this to monitor heap space usage of Hadoop name nodes and job trackers, and it works well.
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.