Page 4 of 5
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Wed Jun 29, 2016 10:43 am
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.
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Tue Jul 12, 2016 1:42 am
by rohithroki
I have attached the configuration file. Please find that.
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Tue Jul 12, 2016 1:28 pm
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.
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Mon Jul 18, 2016 4:37 am
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.
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Mon Jul 18, 2016 10:17 am
by tgriep
Try editing your nsclient.ini file and under this section
Add the following
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
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Wed Jul 20, 2016 1:02 am
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
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Wed Jul 20, 2016 9:00 am
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.
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Tue Aug 02, 2016 5:26 am
by rohithroki
Hi,
Thank you for your response.
How to install the client with Legacy SSL?
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Tue Aug 02, 2016 9:43 am
by mcapra
On the latest 0.4.x version, the option is "Insecure legacy mode"
Re: Check_nrpe socket time out after 10 seconds for windows
Posted: Thu Aug 04, 2016 8:09 am
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.