Page 1 of 1

NRPE: Unable to read output

Posted: Fri Dec 02, 2011 9:07 am
by nagiostool
Hi when i'm using NRPE i'm getting the folowing error
NRPE: Unable to read output
the commands its using are

check_nrpe!check_disk!-a '-w 20% -c 10% -p /'
check_nrpe!check_open_files!-a '-w 30 -c 50'
check_nrpe!check_swap!-a '-w 50 -c 20'
check_nrpe!check_procs!-a '-w 150 -c 250'
check_nrpe!check_users!-a '-w 5 -c 10'


For all the above commands i'm getting the same error

Please help me out

Re: NRPE: Unable to read output

Posted: Fri Dec 02, 2011 11:46 am
by lmiltchev
What happens when you run the command from the command line, for example:

Code: Select all

# cd /usr/local/nagios/libexec
# ./check_nrpe -H <your_target_machine_IP_address> -c check_disk -a '-w 20% -c 10% -p /'
What about the output of this:

Code: Select all

# ./check_nrpe -H localhost
and

Code: Select all

# ./check_nrpe -H <your_target_machine_IP_address>
Run on the client (target machine):

Code: Select all

# service xinetd restart
# tail /var/log/messages
and post the output.

Re: NRPE: Unable to read output

Posted: Fri Dec 02, 2011 1:24 pm
by epx998
Did you run the NRPE agent install on the host to be monitored?

Re: NRPE: Unable to read output

Posted: Fri Dec 02, 2011 2:05 pm
by lmiltchev
Yes, you install the NRPE agent on the client (target machine). Here is the document you need to look at:

http://library.nagios.com/library/produ ... inux-agent

If you ran the installer, but got some errors (dependencies, etc.), you can re-run it. By the end of the installation, you will be asked to enter the IP of you Nagios server.

Hope this helps.

Re: NRPE: Unable to read output

Posted: Mon Dec 05, 2011 12:17 am
by nagiostool
# cd /usr/local/nagios/libexec
# ./check_nrpe -H <your_target_machine_IP_address> -c check_disk -a '-w 20% -c 10% -p /'

output is NRPE: Unable to read output

# ./check_nrpe -H localhost

Output is NRPE v2.12

# ./check_nrpe -H <your_target_machine_IP_address>

Output is NRPE v2.12

Re: NRPE: Unable to read output

Posted: Tue Dec 06, 2011 2:28 am
by nagiostool
lmiltchev wrote:Yes, you install the NRPE agent on the client (target machine). Here is the document you need to look at:

http://library.nagios.com/library/produ ... inux-agent

If you ran the installer, but got some errors (dependencies, etc.), you can re-run it. By the end of the installation, you will be asked to enter the IP of you Nagios server.

Hope this helps.
Thanks your suggestion has worked but does this working for Unregistered RHEL 4.0 ??

I have test machine with RHEL 4.0 (unregistered) , thinking to give a try does it work ???

Re: NRPE: Unable to read output

Posted: Tue Dec 06, 2011 12:22 pm
by mguthrie
I'm pretty sure you'll need to register with RHN, the package requires the use of "yum update."