Check_nrpe socket time out after 10 seconds for windows host
Re: Check_nrpe socket time out after 10 seconds for windows
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
I have attached the configuration file. Please find that.
- Attachments
-
nsclient.ini- Nsclient configuration file attached
- (7.9 KiB) Downloaded 757 times
Re: Check_nrpe socket time out after 10 seconds for windows
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?
Replace xxx.xxx.xxx.xxx with the IP address of your Windows host.
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 60Be 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
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.
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
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
[/settings/NRPE/server]Code: Select all
ssl options = 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
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
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
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.
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
Hi,
Thank you for your response.
How to install the client with Legacy SSL?
Thank you for your response.
How to install the client with Legacy SSL?
Re: Check_nrpe socket time out after 10 seconds for windows
On the latest 0.4.x version, the option is "Insecure legacy mode"
Former Nagios employee
https://www.mcapra.com/
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
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.
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
- WAKR.PNG (5.46 KiB) Viewed 8784 times