Page 1 of 1

nrpe error

Posted: Wed Dec 14, 2011 7:22 am
by nagiostool
Hi
i have installed nrpe-2.13.tar.gz in once of my client systems to monitor it. i have finished everything nut when i configured it using configuration wizard.
Its giving handshake error. I have attached screenshot of error.

Help me.

Re: nrpe error

Posted: Wed Dec 14, 2011 1:52 pm
by scottwilkerson
When you installed NPRE did you do the following?

Edit the /etc/xinetd.d/nrpe file and add the IP address of the monitoring server to the only_from directive.
only_from = 127.0.0.1 <nagios_ip_address>
Add the following entry for the NRPE daemon to the /etc/services file.
nrpe 5666/tcp # NRPE
Restart the xinetd service.
service xinetd restart

You may also want to look at page 6-7 here
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

Re: nrpe error

Posted: Thu Dec 15, 2011 1:07 am
by nagiostool
scottwilkerson wrote:When you installed NPRE did you do the following?

Edit the /etc/xinetd.d/nrpe file and add the IP address of the monitoring server to the only_from directive.
only_from = 127.0.0.1 <nagios_ip_address>
Add the following entry for the NRPE daemon to the /etc/services file.
nrpe 5666/tcp # NRPE
Restart the xinetd service.
service xinetd restart

You may also want to look at page 6-7 here
http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf
I have tried your solution but it had worked to some extent i'm getting still another error i have attached the screenshot.

I have checked the log on the remote machine , please find the screenshot for the information

Re: nrpe error

Posted: Thu Dec 15, 2011 9:59 am
by scottwilkerson
looking back at your original post, I'm not sure you have a current NPRE.

If you haven't seen them, please take a look at
http://assets.nagios.com/downloads/nagi ... g_NRPE.pdf

and for the current install instructions
http://assets.nagios.com/downloads/nagi ... _Agent.pdf

Re: nrpe error

Posted: Thu Dec 15, 2011 11:25 pm
by nagiostool
scottwilkerson wrote:looking back at your original post, I'm not sure you have a current NPRE.

If you haven't seen them, please take a look at
http://assets.nagios.com/downloads/nagi ... g_NRPE.pdf

and for the current install instructions
http://assets.nagios.com/downloads/nagi ... _Agent.pdf
Thanks for the reply, but the issue is that I'm trying to monitor a linux test machine which is not registered with RedHat. So, I'm trying to monitor manually configured nrpe remote host.

Re: nrpe error

Posted: Fri Dec 16, 2011 12:49 pm
by lmiltchev
Run the following commands and post the output:

On your "target" machine:

Code: Select all

# cd /usr/local/nagios/libexec
# ./check_nrpe -H localhost
On your nagios server:

Code: Select all

# cd /usr/local/nagios/libexec
# ./check_nrpe -H <your_target_machine_IP_address>
On both machines:

Code: Select all

# yum list installed openssl

Re: nrpe error

Posted: Tue Dec 20, 2011 1:32 am
by nagiostool
lmiltchev wrote:Run the following commands and post the output:

On your "target" machine:

Code: Select all

# cd /usr/local/nagios/libexec
# ./check_nrpe -H localhost
On your nagios server:

Code: Select all

# cd /usr/local/nagios/libexec
# ./check_nrpe -H <your_target_machine_IP_address>
On both machines:

Code: Select all

# yum list installed openssl
I have run the above commands and the output is as follows

Nagios Server

# yum list installed openssl

Loaded plugins: fastestmirror
base 2705/2705
rpmforge 11094/11094
Installed Packages
openssl.i686 0.9.8e-20.el5 installed


Target Machine

# rpm -qa | grep openssl (i run this command because this is not registred with RH)

openssl-0.9.7a-43.16
openssl-0.9.7a-43.16
xmlsec1-openssl-1.2.6-3
xmlsec1-openssl-1.2.6-3
openssl096b-0.9.6b-22.46
openssl-devel-0.9.7a-43.16


Target Machine

# cd /usr/local/nagios/libexec
# ./check_nrpe -H localhost

NRPE v2.13

Nagios Server

# cd /usr/local/nagios/libexec
# ./check_nrpe -H <your_target_machine_IP_address>

NRPE v2.13

Re: nrpe error

Posted: Tue Dec 20, 2011 1:50 pm
by lmiltchev
All of this looks good. Now, check if port 5666 is indeed open. You can probably telnet into it:

Code: Select all

telnet <your_server> 5666
Check if you have any traffic management software that can cause issues, firewalls, etc.

You can also try to re-install the linux agent on the target machine and restart the xinetd.