Hi,<br><br>I am still stuck with my parse problem :<br>
<br>
[nagios@myserver ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost 
-c check_jmx<br>
JMX UNKNOWN java.lang.NumberFormatException connecting to 
java.lang:type=Memory by URL 
service:jmx:rmi:///jndi/rmi://localhost:8999/jmxrmiorg.nagios.ParseError:
 java.lang.NumberFormatException<br>
   at org.nagios.JMXQuery.parse(JMXQuery.java:250)<br>
   at org.nagios.JMXQuery.main(JMXQuery.java:74)<br>
Caused by: java.lang.NumberFormatException<br>
   at java.lang.Long.parseLong(libgcj.so.7rh)<br>
   at java.lang.Long.parseLong(libgcj.so.7rh)<br>
   at org.nagios.JMXQuery.parse(JMXQuery.java:240)<br>
<br>
tried with :<br>
<br>
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 
"\HeapMemoryUsage" -J "\used" -vvvv -w "\800000000" -c "\1500000000"<br>
<br>I guess the problem is around the jmxrmiorg.nagios<br><br>
If you have any idea for a syntax ...<br>
<br>
Thanks,<br>
<br>
Emmanuel<br><br><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="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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&#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>
</div></div></blockquote></div><br>