Page 5 of 5

Re: CHECK_NRPE: Error

Posted: Thu Dec 06, 2018 12:50 pm
by BrunoLosse1
@tgriep Here's the results:

root@GEUL3BNAGPAS01:/home/administrator# ldd /usr/local/nagios/libexec/check_nrpe
linux-vdso.so.1 => (0x00007ffed2edd000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fe797d18000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fe79789d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe7974d3000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe7972b5000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe7970b1000)
/lib64/ld-linux-x86-64.so.2 (0x000055a1c6e05000)

Re: CHECK_NRPE: Error

Posted: Thu Dec 06, 2018 1:47 pm
by tgriep
I had you run the ldd command to show the libraries that were linked to the plugin and I was thinking that the plugin was not compiled with SSL support but is does show that it does have the SSL library linked to it.
Can you post the nsclient.ini file once again?

Do you have another windows system to test the plugin against or a Linux server running the NRPE agent you can test the plugin against?

Re: CHECK_NRPE: Error

Posted: Thu Dec 06, 2018 2:05 pm
by BrunoLosse1
I have 5 Windows servers and 1 Linux Server.
Neither of the Windows servers works with NRPE, but the Linux one works fine.

Re: CHECK_NRPE: Error

Posted: Thu Dec 06, 2018 2:40 pm
by tgriep
Can you post the nsclient.ini file once again?

Re: CHECK_NRPE: Error

Posted: Thu Dec 06, 2018 2:49 pm
by BrunoLosse1
Sorry I thought I uploaded it.

Re: CHECK_NRPE: Error

Posted: Thu Dec 06, 2018 3:53 pm
by tgriep
Everything looks good in the ini file. The plugin looks like it has libssl linked but maybe it is a incompatible version.
Try this, update the openssl libraries and the openssl-devel packages on the Nagios server and follow this link under the Install the plugin only section to recompile the plugin and see if that works.
https://support.nagios.com/kb/article/n ... e-515.html

Re: CHECK_NRPE: Error

Posted: Thu Dec 13, 2018 8:12 am
by BrunoLosse1
@tgriep, I followed the procedure with no errors and as sudo, but it still doesn't work. :'(

Re: CHECK_NRPE: Error

Posted: Thu Dec 13, 2018 6:02 pm
by tgriep
On your Ubuntu Nagios server run this to install nmap.

Code: Select all

apt install nmap
Then run this command to see if port 5666 is open on the Windows system. Replace xxx.xxx.xxx.xxx with the IP address of the Windows system.

Code: Select all

nmap xxx.xxx.xxx.xxx -p 5666
Post the output here.

Re: CHECK_NRPE: Error

Posted: Sat Dec 15, 2018 10:05 am
by BrunoLosse1
@tgriep, Here's the result:

root@GEUL3BNAGPAS01:/home/administrator# nmap 10.63.248.105 -p 5666

Starting Nmap 7.01 ( https://nmap.org ) at 2018-12-15 13:02 -02
Nmap scan report for gewl3bmsrpas03.inetgefco.net (10.63.248.105)
Host is up (0.0015s latency).
PORT STATE SERVICE
5666/tcp open nrpe
MAC Address: 00:50:56:01:04:14 (VMware)

Nmap done: 1 IP address (1 host up) scanned in 0.56 seconds

Re: CHECK_NRPE: Error

Posted: Mon Dec 17, 2018 11:41 am
by tgriep
The nmap command shows that the port is open so that is good.

Without seeing the messages when the plugin was recompiled, it is hard to say what the issue is.
The following link has some fixes to common problems with the NRPE agent and plugin.
https://support.nagios.com/kb/category.php?id=93

Take a look at then to see if any of them can help your issue.

You said earlier the check_nrpe plugin works with a Linux system but that is fails with all of the Windows systems.

I feel that the check_nrpe plugin is not getting compiled with SSL and that is causing the compatibility issue.
I also feel that the Linux Server that works may be compiled without SSL and that is why it is working.

One thing to try is to disable SSL in NSClient++ and see if the plugin works.
Edit the nsclient.ini file on one of the systems and change this line from

Code: Select all

use ssl = 1
to

Code: Select all

use ssl = 0
Save the file and restart the NSClient++ service.

Then see if the plugin can connect to the Windows system.