Page 1 of 2
CRITICAL - Socket timeout after 10 seconds
Posted: Mon Mar 05, 2018 12:54 pm
by Dharan
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
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Mon Mar 05, 2018 4:01 pm
by scottwilkerson
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
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
Posted: Tue Mar 06, 2018 1:51 pm
by Dharan
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
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Tue Mar 06, 2018 3:12 pm
by scottwilkerson
please attach your nsclient.ini and nsclient.log from the Windows server
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Tue Mar 06, 2018 3:55 pm
by Dharan
please find the attachments
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Tue Mar 06, 2018 4:21 pm
by scottwilkerson
you need to add your nagios XI server IP to this filed in your nsclient.ini
Then restart the service
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 10:13 am
by Dharan
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
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 10:26 am
by scottwilkerson
Dharan wrote:although I restart it the status shows failed.
What did you restart? This refers to ndoutils
service ndo2db restart
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 10:38 am
by Dharan
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
Re: CRITICAL - Socket timeout after 10 seconds
Posted: Wed Mar 07, 2018 10:41 am
by scottwilkerson
after restarting can you see any errors in the system log?