CRITICAL - Socket timeout after 10 seconds
CRITICAL - Socket timeout after 10 seconds
Hello Team,
I installed nscp agent on one of the windows servers to monitor it. I see it on the Nagios server, but, all the parameters CPU,disk, memory and uptime that it is being monitored for are showing CRITICAL - Socket timeout after 10 seconds
I edited the /usr/local/nagios/etc/commands.cfg and changed the timeout value for check_nrpe to 20 seconds, but, the issue still persists. Please suggest.
Thank you,
Dharan
I installed nscp agent on one of the windows servers to monitor it. I see it on the Nagios server, but, all the parameters CPU,disk, memory and uptime that it is being monitored for are showing CRITICAL - Socket timeout after 10 seconds
I edited the /usr/local/nagios/etc/commands.cfg and changed the timeout value for check_nrpe to 20 seconds, but, the issue still persists. Please suggest.
Thank you,
Dharan
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRITICAL - Socket timeout after 10 seconds
While I could try going down the path of helping extend the timeout, typically these checks run in a fraction of a second, and am inclined to believe that the problem is something else. Can we verify you get normal output just connecting to the IP of this host using the password you setup in nscp config. Also make sure the nscp service is running on the windows machine and the firewall in not blocking 12489
From the Nagios XI server command line
From the Nagios XI server command line
Code: Select all
/usr/local/nagios/libexec/check_nt -H IP_ADDRESS -s "YOUR_PASSWORD" -p 12489 -v UPTIME Re: CRITICAL - Socket timeout after 10 seconds
Thank you for the reply.
When I execute /usr/local/nagios/libexec/check_nt -H IP_ADDRESS -s "YOUR_PASSWORD" -p 12489 -v UPTIME on the Nagios XI server command line I get "CRITICAL - Socket timeout after 10 seconds" with the firewall ON on the windows server.
And I get "connect to address 165.216.15.217 and port 12489: Connection refused
could not fetch information from server" with the Firewall OFF on the windows server.
Telnet to the Nagios server from the windows server on port 12489 failed to connect
NSclient++ service is running on the windows server, please suggest
When I execute /usr/local/nagios/libexec/check_nt -H IP_ADDRESS -s "YOUR_PASSWORD" -p 12489 -v UPTIME on the Nagios XI server command line I get "CRITICAL - Socket timeout after 10 seconds" with the firewall ON on the windows server.
And I get "connect to address 165.216.15.217 and port 12489: Connection refused
could not fetch information from server" with the Firewall OFF on the windows server.
Telnet to the Nagios server from the windows server on port 12489 failed to connect
NSclient++ service is running on the windows server, please suggest
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRITICAL - Socket timeout after 10 seconds
please attach your nsclient.ini and nsclient.log from the Windows server
Re: CRITICAL - Socket timeout after 10 seconds
please find the attachments
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRITICAL - Socket timeout after 10 seconds
you need to add your nagios XI server IP to this filed in your nsclient.ini
Then restart the service
Code: Select all
allowed hosts = 127.0.0.1,::1
Re: CRITICAL - Socket timeout after 10 seconds
I added the Nagios XI server IP to the nsclient.ini file on the windows server and I restarted the nsclient++ service, but the errors remain.
Infact the last check done was on 3/5/2018 and I see an error which shows warning sign for Database backend , although I restart it the status shows failed.
Please suggest
Infact the last check done was on 3/5/2018 and I see an error which shows warning sign for Database backend , although I restart it the status shows failed.
Please suggest
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRITICAL - Socket timeout after 10 seconds
What did you restart? This refers to ndoutilsDharan wrote:although I restart it the status shows failed.
service ndo2db restart
Re: CRITICAL - Socket timeout after 10 seconds
I restarted nsclient++ service after making changes to the nsclient.ini file and I also restarted the nd02db service to take care of database backend not running , but the issues remain still
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRITICAL - Socket timeout after 10 seconds
after restarting can you see any errors in the system log?
Code: Select all
grep ndo2db /var/log/messages