<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hi Emmanuel</DIV>
<DIV> </DIV>
<DIV>What user/group do you have set in /etc/xinet.d/nrpe? Are you sure that combination has all the rights it needs?<BR>Perhaps its worth setting it to root or putting an entry in the sudoers file to allow that user to run the command. It looks like</DIV>
<DIV>it cannot read one of the java files, possibly jmxquery.jar?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV> </DIV>
<DIV>Paul</DIV>
<DIV> </DIV>
<DIV><BR>>>> Emmanuel Chanteloup <manuchanteloup@gmail.com> 15/04/10 10:28 >>><BR>Hi,<BR><BR>I tried with check_by_ssh, to give it a try :<BR><BR>/usr/local/nagios/libexec/check_by_ssh -H apwebscp01 -l nagios -C "/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O java.lang:type=Memory"<BR><BR>Remote command execution failed: Exception in thread "main" java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin<BR>________________________________________________________________________<BR>[nagios@aporcl11g objects]$ /usr/local/nagios/libexec/check_by_ssh -H apwebscp01 -l nagios -C "/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O 'java.lang:type=Memory'"<BR><BR>Remote command execution failed: Exception in thread "main" java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin<BR>________________________________________________________________________<BR><BR>[nagios@aporcl11g objects]$ /usr/local/nagios/libexec/check_by_ssh -H apwebscp01 -l nagios -C "/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O '\java.lang:type=Memory'"<BR>Remote command execution failed: Exception in thread "main" java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin<BR><BR>Any help would be appreciated.<BR><BR>Regards,<BR><BR>Emmanuel<BR><BR></DIV>
<DIV class=gmail_quote>2010/4/13 Natxo Asenjo <SPAN dir=ltr><<A href="mailto:natxo.asenjo@gmail.com">natxo.asenjo@gmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV class=im>On Tue, Apr 13, 2010 at 9:34 AM, Emmanuel Chanteloup<BR><<A href="mailto:manuchanteloup@gmail.com">manuchanteloup@gmail.com</A>> wrote:<BR>> command[check_jmx]=/usr/local/nagios/libexec/check_jmx -U<BR>> service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O java.lang:type=Memory<BR>> -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 800000000 -c<BR>> 1500000000<BR><BR></DIV>ok, try this:<BR>
<DIV class=im><BR>command[check_jmx]="/usr/local/nagios/libexec/check_jmx -U<BR>service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -O java.lang:type=Memory<BR>-A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 800000000 -c<BR>1500000000"<BR><BR></DIV>that is, with inverted commas. If it doesn't work, try escaping the<BR>uris like this:<BR>
<DIV class=im><BR>service:jmx:rmi:\/\/\/jndi/rmi:/\/\localhost:8999\/jmxrmi<BR><BR></DIV>You may also try the developers list, maybe they can help you further.<BR>Hope this helps<BR><FONT color=#888888><BR>--<BR></FONT>
<DIV>
<DIV></DIV>
<DIV class=h5>natxo<BR><BR>------------------------------------------------------------------------------<BR>Download Intel® Parallel Studio Eval<BR>Try the new software tools for yourself. Speed compiling, find bugs<BR>proactively, and fine-tune applications for parallel performance.<BR>See why Intel Parallel Studio got high marks during beta.<BR><A href="http://p.sf.net/sfu/intel-sw-dev" target=_blank>http://p.sf.net/sfu/intel-sw-dev</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR><A href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>::: Messages without supporting info will risk being sent to /dev/null<BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>