Hi,

I am still stuck with my parse problem :

[nag...@myserver ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c
check_jmx
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
   at org.nagios.JMXQuery.parse(JMXQuery.java:250)
   at org.nagios.JMXQuery.main(JMXQuery.java:74)
Caused by: java.lang.NumberFormatException
   at java.lang.Long.parseLong(libgcj.so.7rh)
   at java.lang.Long.parseLong(libgcj.so.7rh)
   at org.nagios.JMXQuery.parse(JMXQuery.java:240)

tried with :

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"

I guess the problem is around the jmxrmiorg.nagios

If you have any idea for a syntax ...

Thanks,

Emmanuel

2010/4/13 Natxo Asenjo <[email protected]>

> On Tue, Apr 13, 2010 at 9:34 AM, Emmanuel Chanteloup
> <[email protected]> wrote:
> > 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
>
> ok, try this:
>
> 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"
>
> that is, with inverted commas. If it doesn't work, try escaping the
> uris like this:
>
> service:jmx:rmi:\/\/\/jndi/rmi:/\/\localhost:8999\/jmxrmi
>
> You may also try the developers list, maybe they can help you further.
> Hope this helps
>
> --
> natxo
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to