Page 2 of 3

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Wed Jul 25, 2018 8:07 am
by amitgupta19
Still the same error.

nsclient.ini file attached.

Kindly look into it.

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Wed Jul 25, 2018 12:43 pm
by lmiltchev
This is not the entire config, is it? You are missing many of the default directives...

You can add the missing default entries (if this is the case here) by running the following command from the CMD prompt on the Windows machine:

Code: Select all

nscp settings --generate --add-defaults --load-all

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Mon Jul 30, 2018 6:57 am
by amitgupta19
When i run the above command it gives me the below error:
===============================================================================
C:\Program Files\NSClient++>nscp settings --generate --add-defaults --load-all
E client Failed to initialize settings: Failed to save file 'ini://${shared-
path}/nsclient.ini': I/O error: 5: Access is denied.

c:\source\master\service\settings_client.cpp:132
C:\Program Files\NSClient++/nsclient.log could not be opened, Discarding: error:
Failed to initialize settings: Failed to save file 'ini://${shared-path}/nsclie
nt.ini': I/O error: 5: Access is denied.

===================================================================================
Although i am part of the adminstrators but still i do not have the privileges to modify any file in the C Drive. I can only replace the file.
So if you can help me with the contents of the file, i can create a copy outside the C Drive and replace the actual file in the C Drive.

Do let me know your thoughts.

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Mon Jul 30, 2018 3:49 pm
by scottwilkerson
you need to open cmd.exe by right clicking "run as administrator"

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Tue Jul 31, 2018 9:36 am
by amitgupta19
After adding the missing default entries i am getting following error:

"CHECK_NRPE STATE CRITICAL: Socket timeout after 30 seconds."

Any thoughts.

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Tue Jul 31, 2018 1:42 pm
by scottwilkerson
This document contains the basic steps
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Wed Aug 01, 2018 12:03 pm
by amitgupta19
I followed all the steps mentioned in the Document.

After this i have started getting the following error:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
connect to address xxx.xxx.xxx.xxxx port 5666: Connection refused
connect to host xxx.xxx.xxx.xxx port 5666: Connection refused

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Earlier i was not getting this error.

Can anyone suggest what to do?
Updated nsclient.ini file is attached here with.

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Wed Aug 01, 2018 12:59 pm
by scottwilkerson
Did you restart the service after making the changes?

Is the windows firewall blocking port 5666?

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Mon Aug 06, 2018 9:18 am
by amitgupta19
NS Client++ Service restarted.
there was no changes made to the server that i am trying to monitor.
Earlier i was not getting this error.
Any idea how to track it down?

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Posted: Mon Aug 06, 2018 11:01 am
by scottwilkerson
Do you see any errors in the nsclient.log?