CHECK_NRPE: Error - Could not complete SSL handshake.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
iLinux85
Posts: 3
Joined: Sun Jan 01, 2012 11:51 pm

CHECK_NRPE: Error - Could not complete SSL handshake.

Post by iLinux85 »

Hello

when i was trying to excute the following command to check NRPE if working or not

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H localhost
i got the following error

Code: Select all

CHECK_NRPE: Error - Could not complete SSL handshake.
but when i trying to use the command by ip instead of localhost

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.0.0.1
it's working good

Code: Select all

NRPE v2.13
note : this ip is the localhost ip address

so it have to work on localhost instead of ip ? need advice

thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by mguthrie »

Check your firewall settings, and then check the "allowed hosts" directive either in your nrpe.cfg or in your /etc/xinetd.d/nrpe file.
iLinux85
Posts: 3
Joined: Sun Jan 01, 2012 11:51 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by iLinux85 »

Hello

i fix it by add 127.0.0.1 and ip address of the machine too in only_from located /etc/xinetd.d/nrpe

but i have another problem in the remote machine i want to monitor it , i execute the following command

Code: Select all

    root@host [~]# /usr/local/nagios/libexec/check_nrpe -H localhost
    NRPE v2.13
it's worked ok

but when i try to execute the following command

Code: Select all

    root@sawa4 [~]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_users
    NRPE: Unable to read output
on the machine have the nagios core

Code: Select all

    [root@site ~]# /usr/local/nagios/libexec/check_nrpe -H <<remote_ip_address>>
    NRPE v2.13
    [root@site ~]# /usr/local/nagios/libexec/check_nrpe -H <<remote_ip_address>> -c check_load
    NRPE: Unable to read output
    [root@site ~]#
Note : both machines running on centos 5.7 linux

i don't know what is missing , and i looking for advice
thanks
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by lmiltchev »

This is interesting... If you are able to run:

Code: Select all

# /usr/local/nagios/libexec/check_nrpe -H localhost
successfully, then you should be able to run:

Code: Select all

# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_users
as well...

What happens, when you try to run check_users directly on your target machine, for example:

Code: Select all

# cd /usr/local/nagios/libexec
# ./check_users -w 5 -c 10
Be sure to check out our Knowledgebase for helpful articles and solutions!
iLinux85
Posts: 3
Joined: Sun Jan 01, 2012 11:51 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by iLinux85 »

i am sorry i forgot to install nagios plugin on the remote host i installed nagios NRPE only . everything working good now
Locked