On Thu, May 29, 2008 at 12:13 AM, Steve Pribyl <<a href="mailto:spribyl@peel.com">spribyl@peel.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I did the the same thing the other day.<br>
<br>
Make sure the nrpe.cfg is readable by the nrpe daemon.<br>
Make sure that the path to the command is correct.<br>
<br>
Thanks<br>
<br>
Steve Pribyl<br>
Senior Infrastructure Practitioner<br>
Peel, Inc<br>
990 Grove St. Suite 204<br>
Evanston, IL 60201<br>
Phone: 847-424-0954 ex 14<br>
Cell: 847-343-2349<br>
Fax: 847-424-0986<br>
<a href="mailto:spribyl@peel.com">spribyl@peel.com</a><br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On 05/28/2008 01:38 PM, Kaushal Shriyan wrote:<br>
> Hi<br>
><br>
> when i run the below command i get NRPE: Unable to read output<br>
><br>
> sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c<br>
> check_total_procs<br>
> NRPE: Unable to read output<br>
><br>
> Thanks and Regards<br>
><br>
> Kaushal<br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.net email is sponsored by: Microsoft<br>
> Defy all challenges. Microsoft(R) Visual Studio 2008.<br>
> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><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>
<br>
-------------------------------------------------------------------------<br>
This SF.net email is sponsored by: Microsoft<br>
Defy all challenges. Microsoft(R) Visual Studio 2008.<br>
<a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</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><br>Hi Steve<br><br>kaushal$ ls -l /etc/nagios/nrpe.cfg<br>-rw-r----- 1 nagios nagios 3898 May 28 07:54 /etc/nagios/nrpe.cfg<br>kaushal$<br><br>[I--] [ ~] net-analyzer/nagios-2.9 (0)<br>[I--] [ ~] net-analyzer/nagios-nrpe-2.8.1 (0)<br>
<br>OS: Gentoo Linux<br><br>I am able to see the output for rest of the commands, only for check_total_procs I get <b>NRPE: Unable to read output</b><br>
<br>kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_users<br>USERS OK - 2 users currently logged in<br>kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_load<br>OK - load average: 0.09, 0.15, 0.16<br>
kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_disk1<br>DISK OK [101168544 kB (86%) free on /dev/sda2]<br>kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_mysql<br>
Uptime: 1814627  Threads: 4  Questions: 21736723  Slow queries: 2  Opens: 43  Flush tables: 3  Open tables: 22  Queries per second avg: 11.979<br>kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_nrpe_status<br>
OK - NRPE is alive<br>kaushal$ sudo -u nagios /usr/nagios/libexec/check_nrpe -H localhost -c check_total_procs<br><b>NRPE: Unable to read output</b><br><br>Any ideas<br><br>Thanks and Regards<br><br>Kaushal<br><br><br><br>
<br><br><br><br><br><br><br>Please let me know if i am missing something<br><br><br>