Home » Categories » Multiple Categories

OpenSSL causes issue with check_nrpe plugin with NSClient++

The Problem

The new openssl package on the latest versions of Centos / RHEL/ Ubuntu / Debian cause compatibility issues that cause the check_nrpe plugin to fail when checking Windows Hosts running NSClient++.

Error Displayed

CHECK_NRPE: (ssl_err != 5) Error - Could not complete SSL handshake with xxx.xxx.xxx.xxx: 1

Error in the nsclient.log file

Failed to establish secure connection: sslv3 alert handshake failure: 1040


To fix this, do the following:

1. Generate DH key on the new Nagios server. (It will take a long time to generate so be patient)

openssl dhparam -C 2048 2> /dev/null|sed -n '/BEGIN/,/END/p'

The below is an example of the output:


2. Paste the DH key to a new file "nrpe_dh_2048.pem" on the Windows server in the following location:

C:\Program Files\NSClient++\security\nrpe_dh_2048.pem

3. Open a command prompt in Windows (under user with admin privileges) and run these commands:

cd "\Program Files\NSClient++"
nscp settings --path /settings/NRPE/server --key dh --set "${certificate-path}/nrpe_dh_2048.pem"

Or add the below under the [/settings/NRPE/server] section in the C:\Program Files\NSClient++\nsclient.ini file:

; DH KEY -
dh = ${certificate-path}/nrpe_dh_2048.pem

4. Restart NSClient++ service

net stop nscp && net start nscp

Test it:

/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -2

I ( 2016-09-14) seem to be doing fine...

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Installing XI Fails To Install Dependency pymssql
Viewed 2829 times since Mon, Oct 17, 2016
Nagios XI - Core 4 Load Spikes on 1.75 and 7 Hour Intervals
Viewed 2049 times since Mon, Jan 25, 2016
Nagios XI - Performance Graph Problems
Viewed 14938 times since Fri, Dec 19, 2014
Active Directory / LDAP - Troubleshooting Authentication Integration
Viewed 8039 times since Mon, Jun 26, 2017
Nagios XI - Scheduled Downtime Not Working
Viewed 3058 times since Mon, Oct 10, 2016
Nagios XI - Migrate Performance Data
Viewed 5095 times since Tue, Jan 26, 2016
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 2475 times since Thu, Feb 25, 2016
XI 5.4 monitoring engine not running
Viewed 4952 times since Mon, Feb 6, 2017
Nagios XI - Scheduled Reports Not Running
Viewed 2429 times since Thu, Aug 10, 2017
Nagios XI - SNMP MIB Upload Problems
Viewed 4340 times since Mon, Apr 10, 2017