nrpe error
-
nagiostool
- Posts: 72
- Joined: Wed Jul 20, 2011 2:17 am
nrpe error
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.
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
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
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
-
nagiostool
- Posts: 72
- Joined: Wed Jul 20, 2011 2:17 am
Re: nrpe error
I have tried your solution but it had worked to some extent i'm getting still another error i have attached the screenshot.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 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
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
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
-
nagiostool
- Posts: 72
- Joined: Wed Jul 20, 2011 2:17 am
Re: nrpe error
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.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
Re: nrpe error
Run the following commands and post the output:
On your "target" machine:
On your nagios server:
On both machines:
On your "target" machine:
Code: Select all
# cd /usr/local/nagios/libexec
# ./check_nrpe -H localhostCode: Select all
# cd /usr/local/nagios/libexec
# ./check_nrpe -H <your_target_machine_IP_address>
Code: Select all
# yum list installed opensslBe 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
I have run the above commands and the output is as followslmiltchev wrote:Run the following commands and post the output:
On your "target" machine:
On your nagios server:Code: Select all
# cd /usr/local/nagios/libexec # ./check_nrpe -H localhost
On both machines:Code: Select all
# cd /usr/local/nagios/libexec # ./check_nrpe -H <your_target_machine_IP_address>
Code: Select all
# yum list installed openssl
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
All of this looks good. Now, check if port 5666 is indeed open. You can probably telnet into it:
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.
Code: Select all
telnet <your_server> 5666You 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!