Hi,<br><br>Yes of course it is :<br><br>[root@myserver libexec]# ./check_nrpe -H localhost<br>NRPE v2.12<br><br>I have a lot of other plugins running ok on this server (check_users, check_procs ...).<br><br>Thanks for your help.<br>
<br>Manu<br><br><br><div class="gmail_quote">2010/4/12 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 Mon, Apr 12, 2010 at 2:43 PM, Emmanuel Chanteloup<br>
<<a href="mailto:manuchanteloup@gmail.com">manuchanteloup@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am trying to use check_jmx but I can get through with my NRPE.<br>
><br>
> - If I run directly the check_jmx in a line, it works :<br>
><br>
> [nagios@myserver libexec]# /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>
> JMX OK<br>
> HeapMemoryUsage.used=407931824{committed=1013972992;init=1073741824;max=1013972992;used=407931824}<br>
><br>
> - If I try with the NRPE, I always get the following message :<br>
><br>
> [nagios@myserver libexec]# /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1<br>
> -c check_jmx<br>
> NRPE: Unable to read output<br>
<br>
</div>can you just check if nrpe is running and available? If I try this<br>
from the nagios server:<br>
./check_nrpe -H localhost<br>
NRPE v2.12<br>
<br>
so no -c switch, just the host. That means that the nrpe daemon is<br>
listening and we may poll it.<br>
<br>
you also need to define the command check_jmx somwhere in your client<br>
nrpe.cfg configuration file. I do not know how you installed nrpe in<br>
the machine you want to check, so I cannot guess where the file is. In<br>
a debian server it is in /etc/nagios/nrpe.cfg provided you installed<br>
the nagios-nrpe-server package from the debian repositories. If you<br>
installed from source I have no idea where it is, but it should be<br>
obvious from the documentation.<br>
<br>
--<br>
groeten,<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">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>