CHECK_NRPE: Error - Could not complete SSL handshake

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby amitgupta19 » Wed Jul 25, 2018 8:07 am

Still the same error.

nsclient.ini file attached.

Kindly look into it.
Attachments
nsclient.ini
(1.67 KiB) Downloaded 97 times
amitgupta19
 
Posts: 122
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby lmiltchev » Wed Jul 25, 2018 12:43 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 11239
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby amitgupta19 » Mon Jul 30, 2018 6:57 am

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.
amitgupta19
 
Posts: 122
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby scottwilkerson » Mon Jul 30, 2018 3:49 pm

you need to open cmd.exe by right clicking "run as administrator"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby amitgupta19 » Tue Jul 31, 2018 9:36 am

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

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

Any thoughts.
amitgupta19
 
Posts: 122
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby scottwilkerson » Tue Jul 31, 2018 1:42 pm

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby amitgupta19 » Wed Aug 01, 2018 12:03 pm

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 99 times
amitgupta19
 
Posts: 122
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby scottwilkerson » Wed Aug 01, 2018 12:59 pm

Did you restart the service after making the changes?

Is the windows firewall blocking port 5666?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby amitgupta19 » Mon Aug 06, 2018 9:18 am

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?
amitgupta19
 
Posts: 122
Joined: Fri Sep 08, 2017 5:53 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake

Postby scottwilkerson » Mon Aug 06, 2018 11:01 am

Do you see any errors in the nsclient.log?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

PreviousNext

Return to Nagios Core

Who is online

Users browsing this forum: shamrozkadiwal and 20 guests