NRPE: Unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

NRPE: Unable to read output

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Unable to read output

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
epx998
Posts: 31
Joined: Mon Nov 21, 2011 3:51 pm

Re: NRPE: Unable to read output

Post by epx998 »

Did you run the NRPE agent install on the host to be monitored?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE: Unable to read output

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: NRPE: Unable to read output

Post 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
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: NRPE: Unable to read output

Post 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 ???
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NRPE: Unable to read output

Post by mguthrie »

I'm pretty sure you'll need to register with RHN, the package requires the use of "yum update."
Locked