CHECK_NRPE: Error

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

Postby BrunoLosse1 » Wed Nov 14, 2018 6:04 am

@npolovenko same error.
Attachments
nsclient.log
(607.79 KiB) Downloaded 29 times
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby benjaminsmith » Wed Nov 14, 2018 2:11 pm

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.
User avatar
benjaminsmith
 
Posts: 263
Joined: Wed Aug 22, 2018 4:39 pm

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Mon Nov 19, 2018 9:05 am

Hello @benjaminsmith,

Same error.
Reinstalled without changing anything in the .ini, what should I change?
Attachments
nsclient.ini
(981 Bytes) Downloaded 27 times
nsclient.log
(1.7 KiB) Downloaded 25 times
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby benjaminsmith » Mon Nov 19, 2018 12:09 pm

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 36 times
User avatar
benjaminsmith
 
Posts: 263
Joined: Wed Aug 22, 2018 4:39 pm

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Mon Nov 19, 2018 12:22 pm

I'm getting connection refused with the ini you provided.
Attachments
nsclient.log
(15.35 KiB) Downloaded 34 times
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby benjaminsmith » Mon Nov 19, 2018 3:42 pm

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
User avatar
benjaminsmith
 
Posts: 263
Joined: Wed Aug 22, 2018 4:39 pm

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Thu Nov 22, 2018 6:12 am

@benjaminsmith,

administrator@GEUL3BNAGPAS01:/usr/local/nagios/libexec$ ./check_nrpe -V
NRPE Plugin for Nagios
Version: 3.2.1
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby tgriep » Mon Nov 26, 2018 4:56 pm

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 24 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!
User avatar
tgriep
Madmin
 
Posts: 7322
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Mon Dec 03, 2018 8:38 am

@tgriep, sorry for taking that long to respond.
No, it did not work.
Attachments
nsclient.log
(471.63 KiB) Downloaded 14 times
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby tgriep » Mon Dec 03, 2018 3:47 pm

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
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
tgriep
Madmin
 
Posts: 7322
Joined: Thu Oct 30, 2014 9:02 am

PreviousNext

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 20 guests