CHECK_NRPE: Error
-
- Posts: 40
- Joined: Tue Oct 23, 2018 1:22 pm
Re: CHECK_NRPE: Error
@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)
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
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?
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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 40
- Joined: Tue Oct 23, 2018 1:22 pm
Re: CHECK_NRPE: Error
I have 5 Windows servers and 1 Linux Server.
Neither of the Windows servers works with NRPE, but the Linux one works fine.
Neither of the Windows servers works with NRPE, but the Linux one works fine.
Re: CHECK_NRPE: Error
Can you post the nsclient.ini file once again?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 40
- Joined: Tue Oct 23, 2018 1:22 pm
Re: CHECK_NRPE: Error
Sorry I thought I uploaded it.
- Attachments
-
- nsclient.ini
- This is the last one provided by u guys
- (1.88 KiB) Downloaded 333 times
Re: CHECK_NRPE: Error
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
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 40
- Joined: Tue Oct 23, 2018 1:22 pm
Re: CHECK_NRPE: Error
@tgriep, I followed the procedure with no errors and as sudo, but it still doesn't work. :'(
Re: CHECK_NRPE: Error
On your Ubuntu Nagios server run this to 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.
Post the output here.
Code: Select all
apt install nmap
Code: Select all
nmap xxx.xxx.xxx.xxx -p 5666
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 40
- Joined: Tue Oct 23, 2018 1:22 pm
Re: CHECK_NRPE: Error
@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
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
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
to
Save the file and restart the NSClient++ service.
Then see if the plugin can connect to the Windows system.
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
Code: Select all
use ssl = 0
Then see if the plugin can connect to the Windows system.
Be sure to check out our Knowledgebase for helpful articles and solutions!