Nagios Event Log NSCLIENT help

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.
me@work55
Posts: 44
Joined: Sun Jan 22, 2017 6:15 pm

Re: Nagios Event Log NSCLIENT help

Post by me@work55 »

Can anyone on here figure this out please

I has to be a setting in Nagios or nsclient that I have not right I have tried different settings no luck

Thanks

Tom
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Event Log NSCLIENT help

Post by dwhitfield »

me@work55 wrote: I have tried different settings no luck
As we suggested in the last tech post, did you try a different version of NSClient? .4.1 is old. .4.3 is the latest version in the .4 series, but they have moved on to .5.

If you continue to have trouble with NSClient, you might try NCPA, which we did actually write: https://exchange.nagios.org//directory/ ... PA/details
me@work55
Posts: 44
Joined: Sun Jan 22, 2017 6:15 pm

Re: Nagios Event Log NSCLIENT help

Post by me@work55 »

I will try on 4.3.77


NCPA never used before would need some instructions on that setup or examples of that
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Event Log NSCLIENT help

Post by dwhitfield »

Let us know how .4.3 goes.

As far as NCPA is concerned, https://assets.nagios.com/downloads/ncp ... g_NCPA.pdf should get you started, but if you have trouble with NCPA, you should open a new thread.
me@work55
Posts: 44
Joined: Sun Jan 22, 2017 6:15 pm

Re: Nagios Event Log NSCLIENT help

Post by me@work55 »

I put 4.3.77 on and now all the NRPE services I had working are not

They are all getting this

CHECK_NRPE: Error - Could not complete SSL handshake

NSCLIENT.INI not configured correctly my thoughts
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Event Log NSCLIENT help

Post by dwhitfield »

.4.3.77 is a nightly build, per https://www.nsclient.org/download/0.4.3/ but probably you ran into the following
In 0.4.3 we will no longer support the rather insecure regular NRPE!
You can still enable support but you have to do so (in the installer or using the command line mode).
So keep a heads up when you run the installer so you wont miss it.
from https://docs.nsclient.org/0.4.3/whatsnew/0.4.3.html

That said, please post your new nsclient.ini file.
me@work55
Posts: 44
Joined: Sun Jan 22, 2017 6:15 pm

Re: Nagios Event Log NSCLIENT help

Post by me@work55 »

I am attaching the nsclient file that was created during the install

Also the one from 4.1.3
Attachments
nsclient.ini
the 4.1.3 nsclient file
(14.38 KiB) Downloaded 183 times
nsclient4.3.77.ini
New NSLCINET FILE
(7.37 KiB) Downloaded 203 times
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Event Log NSCLIENT help

Post by ssax »

Please try changing the allowed hosts directive to an IP address instead of a DNS address:

Code: Select all

allowed hosts = X.X.X.X
Then restart the NSClient++ service and see if that works.

What does your nsclient.log show?

Are you just running this for testing?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H X.X.X.X
I imported your config to mine, changed the DNS to my IP address and it worked properly so there may be something else going on.
me@work55
Posts: 44
Joined: Sun Jan 22, 2017 6:15 pm

Re: Nagios Event Log NSCLIENT help

Post by me@work55 »

changed to ip address no change


from command

[root@anakin ~]# /usr/local/nagios/libexec/check_nrpe -H 132.238.5.25
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@anakin ~]#

same error
Attachments
nsclient.log
NSCLIENT LOG
(31.86 KiB) Downloaded 198 times
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Event Log NSCLIENT help

Post by ssax »

What version of check_nrpe are you running:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -V
Locked