Page 1 of 1

CHECK_NRPE: Error - Could not complete SSL handshake.

Posted: Mon Jan 02, 2012 12:34 am
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

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

Posted: Mon Jan 02, 2012 2:13 pm
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.

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

Posted: Mon Jan 02, 2012 4:38 pm
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

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

Posted: Mon Jan 02, 2012 5:41 pm
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

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

Posted: Fri Jan 06, 2012 12:46 am
by iLinux85
i am sorry i forgot to install nagios plugin on the remote host i installed nagios NRPE only . everything working good now