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 » Thu Dec 06, 2018 12:50 pm

@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)
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby tgriep » Thu Dec 06, 2018 1:47 pm

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?
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: 7545
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Thu Dec 06, 2018 2:05 pm

I have 5 Windows servers and 1 Linux Server.
Neither of the Windows servers works with NRPE, but the Linux one works fine.
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby tgriep » Thu Dec 06, 2018 2:40 pm

Can you post the nsclient.ini file once again?
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: 7545
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Thu Dec 06, 2018 2:49 pm

Sorry I thought I uploaded it.
Attachments
nsclient.ini
This is the last one provided by u guys
(1.88 KiB) Downloaded 42 times
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby tgriep » Thu Dec 06, 2018 3:53 pm

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/nrpe-how-to-install-nrpe-v3-from-source-515.html
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: 7545
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Thu Dec 13, 2018 8:12 am

@tgriep, I followed the procedure with no errors and as sudo, but it still doesn't work. :'(
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby tgriep » Thu Dec 13, 2018 6:02 pm

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.
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: 7545
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Error

Postby BrunoLosse1 » Sat Dec 15, 2018 10:05 am

@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
BrunoLosse1
 
Posts: 40
Joined: Tue Oct 23, 2018 1:22 pm

Re: CHECK_NRPE: Error

Postby tgriep » Mon Dec 17, 2018 11:41 am

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.
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: 7545
Joined: Thu Oct 30, 2014 9:02 am

Previous

Return to Nagios Core

Who is online

Users browsing this forum: PetrDib and 7 guests