Check_nrpe socket time out after 10 seconds for windows host

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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by rkennedy »

Can you post your entire nsclient.ini file for us to look at? I'd like to lab this up on my end.
Former Nagios Employee
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by rohithroki »

I have attached the configuration file. Please find that.
Attachments
nsclient.ini
Nsclient configuration file attached
(7.9 KiB) Downloaded 757 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by tgriep »

Thanks for the INI file, it should work for you.

Can you login to the Nagios server as root, run the following commands and post the output?

Code: Select all

nmap xxx.xxx.xxx.xxx -p 5666
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -t 60
Replace xxx.xxx.xxx.xxx with the IP address of your Windows host.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by rohithroki »

Thank you for your response.

Please find below the requested results.

[root@server~]# nmap xx.xx.xx.xx -p 5666

Starting Nmap 5.51 ( http://nmap.org ) at 2016-07-18 17:25 SGT
Nmap scan report for xx.xx.xx.xx
Host is up (0.078s latency).
PORT STATE SERVICE
5666/tcp open nrpe

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

[root@server~]# /usr/local/nagios/libexec/check_nrpe -H xx.xx.xx.xx -t 60
CHECK_NRPE: Socket timeout after 60 seconds.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by tgriep »

Try editing your nsclient.ini file and under this section

Code: Select all

[/settings/NRPE/server]
Add the following

Code: Select all

ssl options = 
Restart the NSClient++ service.
This should disable the SSL options and hopefully is fixes the issue.

Them run this again and if it fails, look at the nsclient.log file for any errors and post them here.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xx.xx.xx.xx -t 60 
Be sure to check out our Knowledgebase for helpful articles and solutions!
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by rohithroki »

Thank you for your response.

I have edited the Nsclient.ini file as u suggested and restarted the Nsclient service. But still the issue persist.

[root@server~]# /usr/local/nagios/libexec/check_nrpe -H xx.xx.xx.xx -t 60
CHECK_NRPE: Socket timeout after 60 seconds.

And I do not find any error message in the Nsclient log file for today but some error message entries some days before(pasted the entries below).

2016-07-11 15:19:00: error:D:\source\nscp\include\socket/connection.hpp:137: Failed to read data: The I/O operation has been aborted because of either a thread exit or an application request
2016-07-11 15:19:00: error:D:\source\nscp\include\socket/connection.hpp:137: Failed to read data: The I/O operation has been aborted because of either a thread exit or an application request
2016-07-11 15:19:00: error:D:\source\nscp\include\socket/connection.hpp:137: Failed to read data: The I/O operation has been aborted because of either a thread exit or an application request
2016-07-19 17:06:06: error:D:\source\nscp\include\socket/connection.hpp:137: Failed to read data: An existing connection was forcibly closed by the remote host
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by tgriep »

The only thing left to try is to uninstall the nsclient and delete the folders and reinstall the latest stable 4.x version, something may be corrupted.
If you do this, make sure you install the client with legacy SSL.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by rohithroki »

Hi,

Thank you for your response.

How to install the client with Legacy SSL?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Check_nrpe socket time out after 10 seconds for windows

Post by mcapra »

On the latest 0.4.x version, the option is "Insecure legacy mode"
2016_08_02_09_42_27_Windows_7_with_MEAN_Oracle_VMware_Workstation.png
Former Nagios employee
https://www.mcapra.com/
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

Re: Check_nrpe socket time out after 10 seconds for windows

Post by rohithroki »

Hi,

Thank you so much for your response.

I tried uninstalling and reinstalling the Nsclient by selecting the Insecure legacy mode. Still i'm facing the same issue.

I have attached the screenshot and the Nsclient configuration file for your reference.
Attachments
nsclient.ini
Nsclient configuration file
(7.91 KiB) Downloaded 693 times
screenshot of the server in nagios
screenshot of the server in nagios
WAKR.PNG (5.46 KiB) Viewed 8789 times
Locked