On Tue, Apr 13, 2010 at 8:39 AM, Emmanuel Chanteloup <[email protected]> wrote: > The thing I do not understand is why I can run it directly with my nagios > account : > > [nag...@myserver ~]$ /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 > JMX OK > HeapMemoryUsage.used=593227424{committed=1036189696;init=1073741824;max=1036189696;used=593227424} > > and it doesn't work with NRPE, knowing that NRPE is using the nagios account > ! > > [nag...@myserver ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c > check_jmx > NRPE: Unable to read output
could you please post your nrpe.cfg (sanitize as needed) to make sure there is not a typo in it? (I've had that many times myself, very frustrating). Another option worth exploring is http://search.cpan.org/~roland/jmx4perl-0.65/scripts/check_jmx4perl. Another thing: I am not sure how nrpe escapes the slashes (if at all) in the uri in that check. Try adding more on slash in front of every other slash. Just a wild shot, I know. -- natxo ------------------------------------------------------------------------------ Download Intel® 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
