nrpe error

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 error

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrpe error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: nrpe error

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrpe error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: nrpe error

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

Re: nrpe error

Post 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
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 error

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

Re: nrpe error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked