Page 1 of 1

CHECK_NRPE: Error - Could not complete SSL handshake.

Posted: Sun Oct 29, 2017 1:54 am
by jabi27
Hi,

I get this error and I am a bit confused. From the server I issue:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H kdb-db-test1.kdb.stil.dk
CHECK_NRPE: Error - Could not complete SSL handshake.
At the clients log I see:

Code: Select all

[1509259601] Error: (use_ssl == false): Request packet version was invalid!
[1509259601] Could not read request from client , bailing out...
I think the nrpe is running under xinitd and have allowed the nagios server in the nrpe:

Code: Select all

cat /etc/xinetd.d/nrpe
service nrpe
{
    disable         = no
    per_source      = 25
    socket_type     = stream
    port            = 5666
    wait            = no
    user            = nagios
    group           = nagios
    server          = /usr/local/nagios/bin/nrpe
    server_args     = -n -4 -c /usr/local/nagios/etc/nrpe.cfg --inetd
    only_from       = 195.231.243.237 127.0.0.1
    log_on_success  = 
}
The 195.... is the nagios server. I have experimented with options "-n -4" there is no differences.


Any ideas?

Best
/Jan

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

Posted: Mon Oct 30, 2017 10:13 am
by npolovenko
Hello, @jabi27. Can you check the version of nrpe client on your Nagios Server and on the remote server as well?

Code: Select all

cd  /usr/local/nagios/libexec/
./check_nrpe
One of the plugins may be outdated.