Hi Paul,<br><br>Where can I add the \  ? Which file ? Do you mean I have to edit the .jar ?<br><br>Regards<br><br>Emmanuel<br><br><div class="gmail_quote">2010/4/13 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>I've had similar problems with nrpe where the command string doesn't get</div>
<div>passed intact but instead some non letter characters get "processed" somewhere</div>
<div>within nrpe, so running it directly and through nrpe give different results.</div>
<div>Try putting a \ in front of every unusual character</div>
<div> </div>
<div>Paul Willis <br><br>>>> Natxo Asenjo <<a href="mailto:natxo.asenjo@gmail.com" target="_blank">natxo.asenjo@gmail.com</a>> 13/04/10 08:12 >>><div><div></div><div class="h5"><br>On Tue, Apr 13, 2010 at 8:39 AM, Emmanuel Chanteloup<br>
<<a href="mailto:manuchanteloup@gmail.com" target="_blank">manuchanteloup@gmail.com</a>> wrote:<br>> The thing I do not understand is why I can run it directly with my nagios<br>> account :<br>><br>> [nagios@myserver ~]$ /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>> JMX OK<br>> HeapMemoryUsage.used=593227424{committed=1036189696;init=1073741824;max=1036189696;used=593227424}<br>
><br>> and it doesn't work with NRPE, knowing that NRPE is using the nagios account<br>> !<br>><br>> [nagios@myserver ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c<br>> check_jmx<br>> NRPE: Unable to read output<br>
<br>could you please post your nrpe.cfg (sanitize as needed) to make sure<br>there is not a typo in it? (I've had that many times myself, very<br>frustrating).<br><br>Another option worth exploring is<br><a href="http://search.cpan.org/%7Eroland/jmx4perl-0.65/scripts/check_jmx4perl." target="_blank">http://search.cpan.org/~roland/jmx4perl-0.65/scripts/check_jmx4perl.</a><br>
<br>Another thing: I am not sure how nrpe escapes the slashes (if at all)<br>in the uri in that check. Try adding more on slash in front of every<br>other slash. Just a wild shot, I know.<br><br>-- <br>natxo<br><br>------------------------------------------------------------------------------<br>
Download Intel&#174; 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></div></div>
<br>------------------------------------------------------------------------------<br>
Download Intel&#174; 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>