NRPE Errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
crrussell3
Posts: 31
Joined: Tue Oct 10, 2017 9:09 am

Re: NRPE Errors

Post by crrussell3 »

the use SSL = 1 will enable SSL? We do not have anything setup for this, and prefer not to use it at this time.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE Errors

Post by dwhitfield »

crrussell3 wrote: 1. CHECK_NRPE: Error - Could not complete SSL handshake.
If you don't want to use SSL, then add a -n to your checks on the XI side.
crrussell3
Posts: 31
Joined: Tue Oct 10, 2017 9:09 am

Re: NRPE Errors

Post by crrussell3 »

npolovenko wrote:@crrussell3, Sounds good. Let us know if you still experience problems with those two hosts.

In [/settings/NRPE/server] please also add this:

Code: Select all

use SSL = 1 
Restart the NSCLient service.

What is the version of check_nrpe plugin on the NagiosXI side? To check you can run this command:

Code: Select all

/usr/local/nagios/libexec/check_nrpe
It'll say a version number at the top of the output.
Version: 2.15
crrussell3
Posts: 31
Joined: Tue Oct 10, 2017 9:09 am

Re: NRPE Errors

Post by crrussell3 »

dwhitfield wrote:
crrussell3 wrote: 1. CHECK_NRPE: Error - Could not complete SSL handshake.
If you don't want to use SSL, then add a -n to your checks on the XI side.
I disabled SSL and adding the -n to the checks.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRPE Errors

Post by dwhitfield »

What's the current output? If you are still having errors, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh

That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

If you get an error that PROFILE BUILD FAILED, please see https://support.nagios.com/kb/article.p ... ategory=44

UPDATE: Profile shared with techs
crrussell3
Posts: 31
Joined: Tue Oct 10, 2017 9:09 am

Re: NRPE Errors

Post by crrussell3 »

Checking state history, I am now seeing the following:

CHECK_NRPE: Error sending query to host.

Five minutes later, everything is back to normal and check is green.

Sent PM with profile.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE Errors

Post by npolovenko »

@crrussell3, Based on your logs you may have multiple Nagios instances running which may be the cause of the problems in first place. Please run these commands:

Code: Select all

service nagios stop
killall -9 nagios
service nagios start
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
crrussell3
Posts: 31
Joined: Tue Oct 10, 2017 9:09 am

Re: NRPE Errors

Post by crrussell3 »

npolovenko wrote:@crrussell3, Based on your logs you may have multiple Nagios instances running which may be the cause of the problems in first place. Please run these commands:

Code: Select all

service nagios stop
killall -9 nagios
service nagios start
Verified and performed commands above.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE Errors

Post by npolovenko »

@crrussell3, Did that resolve the issue?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
crrussell3
Posts: 31
Joined: Tue Oct 10, 2017 9:09 am

Re: NRPE Errors

Post by crrussell3 »

npolovenko wrote:@crrussell3, Did that resolve the issue?
I am looking through the state history, and am still seeing the same errors pop up:

CHECK_NRPE: Error sending query to host.
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Locked