CHECK_NRPE: Error

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.
BrunoLosse1
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Post by BrunoLosse1 »

@npolovenko same error.
Attachments
nsclient.log
(607.79 KiB) Downloaded 297 times
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: CHECK_NRPE: Error

Post 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.
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!
BrunoLosse1
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Post by BrunoLosse1 »

Hello @benjaminsmith,

Same error.
Reinstalled without changing anything in the .ini, what should I change?
Attachments
nsclient.ini
(981 Bytes) Downloaded 278 times
nsclient.log
(1.7 KiB) Downloaded 291 times
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: CHECK_NRPE: Error

Post 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.
Attachments
nsclient.ini
(903 Bytes) Downloaded 395 times
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!
BrunoLosse1
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Post by BrunoLosse1 »

I'm getting connection refused with the ini you provided.
Attachments
nsclient.log
(15.35 KiB) Downloaded 325 times
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: CHECK_NRPE: Error

Post 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
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!
BrunoLosse1
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Post by BrunoLosse1 »

@benjaminsmith,

administrator@GEUL3BNAGPAS01:/usr/local/nagios/libexec$ ./check_nrpe -V
NRPE Plugin for Nagios
Version: 3.2.1
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error

Post 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.
Attachments
nsclient.ini
(1.9 KiB) Downloaded 323 times
Be sure to check out our Knowledgebase for helpful articles and solutions!
BrunoLosse1
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Post by BrunoLosse1 »

@tgriep, sorry for taking that long to respond.
No, it did not work.
Attachments
nsclient.log
(471.63 KiB) Downloaded 305 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked