Page 1 of 1

Issues on running check_jmx

Posted: Tue May 21, 2013 4:54 pm
by stecino
Running into this type of error when running on the NRPE client. NRPE is configured and running

[root@vmstageapp01 libexec]# ./check_nrpe -H localhost
NRPE v2.13

[root@vmstageapp01 libexec]# ./check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:11099/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -w 5476083302 -c 5798205849
Exception in thread "main" java.lang.NoClassDefFoundError: org/nagios/JMXQuery
Caused by: java.lang.ClassNotFoundException: org.nagios.JMXQuery
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.nagios.JMXQuery. Program will exit.

Re: Issues on running check_jmx

Posted: Wed May 22, 2013 3:08 pm
by sreinhardt
What permissions do you have on the jmxquery.jar? It seems that most issues similar to yours that the nagios user does not have ownership of the file.