Hi Paul,<br><br>I also tried with check_by_ssh, here is what I get :<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 -A HeapMemoryUsage -K used -O java.lang:type=Memory'<br>
<br>Remote command execution failed: Exception in thread "main" java.lang.NoClassDefFoundError: ch.syabru.nagios.NagiosJmxPlugin<br><br>I also tried to add " :<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 -A HeapMemoryUsage -K used -O "java.lang:type=Memory"' <br>
<br>Could not open pipe: /usr/bin/ssh -l nagios apwebscp01 '/usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmi -A HeapMemoryUsage -K used -O "java.lang:type=Memory"'<br>
<br>I think this one is due to -O which also is a check_by_ssh variable.<br><br>It is just driving me crazy :)<br><br>Thanks anyway,<br><br>Regards,<br><br>Emmanuel <br><br><div class="gmail_quote">2010/4/15 Paul WILLIS PSE 55499 <span dir="ltr"><<a href="mailto:paul.willis@kent.pnn.police.uk">paul.willis@kent.pnn.police.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div 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 <<a href="mailto:manuchanteloup@gmail.com" target="_blank">manuchanteloup@gmail.com</a>> 15/04/10 10:28 >>><div><div></div><div class="h5"><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>
</div><div><div></div><div class="h5">
<div class="gmail_quote">2010/4/13 Natxo Asenjo <span dir="ltr"><<a href="mailto:natxo.asenjo@gmail.com" target="_blank">natxo.asenjo@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);">
<div>On Tue, Apr 13, 2010 at 9:34 AM, Emmanuel Chanteloup<br><<a href="mailto:manuchanteloup@gmail.com" target="_blank">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><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><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>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" target="_blank">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></div></div></div>
<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></blockquote></div><br>