CHECK_NRPE: Error - Could not complete SSL handshake

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by amitgupta19 »

Still the same error.

nsclient.ini file attached.

Kindly look into it.
Attachments
nsclient.ini
(1.67 KiB) Downloaded 494 times
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by scottwilkerson »

you need to open cmd.exe by right clicking "run as administrator"
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by amitgupta19 »

After adding the missing default entries i am getting following error:

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

Any thoughts.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by scottwilkerson »

This document contains the basic steps
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post 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.
Attachments
nsclient.ini
(29.82 KiB) Downloaded 474 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by scottwilkerson »

Did you restart the service after making the changes?

Is the windows firewall blocking port 5666?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Post by scottwilkerson »

Do you see any errors in the nsclient.log?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked