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
NRPE: Unable to read output
Re: NRPE: Unable to read output
What happens when you run the command from the command line, for example:
What about the output of this:
and
Run on the client (target machine):
and post the output.
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 /'Code: Select all
# ./check_nrpe -H localhostCode: Select all
# ./check_nrpe -H <your_target_machine_IP_address>Code: Select all
# service xinetd restart
# tail /var/log/messagesBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRPE: Unable to read output
Did you run the NRPE agent install on the host to be monitored?
Re: NRPE: Unable to read output
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.
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
# 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
# ./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
Thanks your suggestion has worked but does this working for Unregistered RHEL 4.0 ??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.
I have test machine with RHEL 4.0 (unregistered) , thinking to give a try does it work ???
Re: NRPE: Unable to read output
I'm pretty sure you'll need to register with RHN, the package requires the use of "yum update."