Page 1 of 1

SSL HANDSHAKE ERROR

Posted: Wed Feb 10, 2016 9:46 am
by tejanagios
HI,

I've followed the gidelines about NRPE SSL option and turning it off, made changes to the allowhosts and entered my client IP address at nrpe.cfg, but when testing the command from the server without -n option, i am getting a
'could not complete SSL handshake error' ; i've played with the time out settings as well.

2. Also, could you also point me to setting up ssl between nagios xi and nsclient 0.4.4 please.




Here is my configuration file:

[/modules]
CheckSystem = enabled
CheckDisk = enabled
CheckExternalScripts = enabled
NRPEServer = enabled


[/settings/default]
allowed hosts = 172.24.48.16
password = simple10


[/settings/NRPE/server]

; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = True

; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow nasty characters = false

; PORT NUMBER - Port to use for NRPE.
port = 5666

# ENABLE SSL ENCRYPTION
use ssl = 0

#COMMAND TIMEOUT
timeout = 60

; Undocumented key
verify mode = none

; Undocumented key
insecure = true


[/settings/external scripts]
allow arguments = True


[/settings/external scripts/scripts]
test_ps1 = cmd /c echo scripts\check_test.ps1; exit($lastexitcode) | powershell.exe -command -

Re: SSL HANDSHAKE ERROR

Posted: Wed Feb 10, 2016 10:51 am
by rkennedy
# ENABLE SSL ENCRYPTION
use ssl = 0
I believe this needs to be changed to a 1. Then, restart the NSClient++ service and try again.