Page 4 of 5

Re: CHECK_NRPE: Error

Posted: Wed Nov 14, 2018 6:04 am
by BrunoLosse1
@npolovenko same error.

Re: CHECK_NRPE: Error

Posted: Wed Nov 14, 2018 2:11 pm
by benjaminsmith
Hello @BrunoLosse1

We're really not quite sure why your still having this error condition. We've discussed the issue here and believe we may have better results using an earlier version of NSClient. Let's try the following:

1. Backup your current configuration file (nsclient.ini).
2. Uninstall NSClient++
3. Remove any remaining directories in C:\Program Files for NSClient++
4. Install NSClient 0.4.4 along with your backup configuration file.
https://www.nsclient.org/download/0.4.4
5. Test again

If you're still getting the same error, then please post the current configuration file again for us to review again.

Re: CHECK_NRPE: Error

Posted: Mon Nov 19, 2018 9:05 am
by BrunoLosse1
Hello @benjaminsmith,

Same error.
Reinstalled without changing anything in the .ini, what should I change?

Re: CHECK_NRPE: Error

Posted: Mon Nov 19, 2018 12:09 pm
by benjaminsmith
Hi @BrunoLosse1

It looks like you're still getting the ssl handshake error ( 2018-11-19 12:02:23: error:c:\source\nscp\include\socket/connection.hpp:243: Failed to establish secure connection: sslv3 alert handshake failure: 1040). Make sure to change the ssl options to:

Code: Select all

ssl options = 
and restart. If this doesn't work, please use the attached ini file. This is the minimum configuration file for nsclient that we have used with other customers.

Re: CHECK_NRPE: Error

Posted: Mon Nov 19, 2018 12:22 pm
by BrunoLosse1
I'm getting connection refused with the ini you provided.

Re: CHECK_NRPE: Error

Posted: Mon Nov 19, 2018 3:42 pm
by benjaminsmith
Hello,

We've tested this here with NSClient 0.4.4 and the last nsclient.ini file, and it's working. What version of check_nrpe do you have installed?

Code: Select all

cd /usr/local/nagios/libexec
./check_nrpe -V
nsclient.ini

Code: Select all

; Undocumented section
[/settings/default]

; Undocumented key
password = TIAtende07

; Undocumented key
allowed hosts = 10.63.248.131

; Undocumented section
[/settings/NRPE/server]

allow arguments = 1
allow nasty characters = 1
use SSL = 1
insecure = 1

; Undocumented section
[/modules]

; Undocumented key
CheckExternalScripts = 1

; Undocumented key
CheckHelpers = 1

; Undocumented key
CheckEventLog = 1

; Undocumented key
CheckNSCP = 1

; Undocumented key
CheckDisk = 1

; Undocumented key
CheckSystem = 1

; Undocumented key
NSClientServer = 1

; Undocumented key
NRPEServer = 1

[/settings/external scripts]
allow arguments=1
allow nasty characters=true

[/settings/external scripts/scripts]

[/settings/log/file]

max size = -1

[/settings/log]

level = debug
file name = ${exe-path}/nsclient.log
date format = %Y-%m-%d %H:%M:%S

Re: CHECK_NRPE: Error

Posted: Thu Nov 22, 2018 6:12 am
by BrunoLosse1
@benjaminsmith,

administrator@GEUL3BNAGPAS01:/usr/local/nagios/libexec$ ./check_nrpe -V
NRPE Plugin for Nagios
Version: 3.2.1

Re: CHECK_NRPE: Error

Posted: Mon Nov 26, 2018 4:56 pm
by tgriep
Lets start over with the NSClient Install again as I feel there may be a bad SSL key file.

Uninstall the NSClient++ agent on the windows server and delete the following folder.

Code: Select all

C:\Program Files\NSClient++
Download and install the latest stable 0.4.4.xx version of the NSClient++ service.

Replace the C:\Program Files\NSClient++\nsclient.ini file with the one attached to the post.
Edit the ini file and update the following line with the IP address of the Nagios server and restart NSClient++

Code: Select all

allowed hosts = xxx.xxx.xxx.xxx
Let us know if this works out not.

Re: CHECK_NRPE: Error

Posted: Mon Dec 03, 2018 8:38 am
by BrunoLosse1
@tgriep, sorry for taking that long to respond.
No, it did not work.

Re: CHECK_NRPE: Error

Posted: Mon Dec 03, 2018 3:47 pm
by tgriep
Can you login to the nagios server as root, run the following command and post the output here?

Code: Select all

ldd /usr/local/nagios/libexec/check_nrpe