CHECK_NRPE: Error - Could not complete SSL handshake


I have installed NRPE add on & nagios plugin on remote linux host, All steps mentioned in NRPE installation guide are follwed, however when I am testing NRPE I am getting below error message

[[email protected] libexec]# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.

When I use -n switch to bypass SSL, I am getting below message.

[[email protected] libexec]# ./check_nrpe -H localhost -n
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

Can some one please help me to resolve this issue. Thanks in advance


(1) Could you check your wrappers? Make sure the port 5666 is not blocked.
(2) NRPE is running as stanalone daemon or using inetd.
(3) Did you check the logs? Any specific errors logged? Check your SSL version.


are you running it under xinetd? what *nix operating system are you using?

if using xinetd, make sure /etc/xinetd.d/nrpe is owned root:root on the remote host

i would start by >not< testing nrpe locally. you’re not going to be running nrpe locally.

go to your nagios box and run
/usr/local/nagios/libexec/check_nrpe -H -c check_command_i_defined_in_nrpe_cfg

nrpe will connect to a remote host, look in /etc/nrpe.cfg (or wherever you have it), look for the “check_command_i_defined_in_nrpe_cfg” and run the script associated with that command, and show you the result.