CRITICAL - Socket timeout after 10 seconds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Dharan
Posts: 15
Joined: Tue Feb 20, 2018 1:33 pm

CRITICAL - Socket timeout after 10 seconds

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CRITICAL - Socket timeout after 10 seconds

Post 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  
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Dharan
Posts: 15
Joined: Tue Feb 20, 2018 1:33 pm

Re: CRITICAL - Socket timeout after 10 seconds

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CRITICAL - Socket timeout after 10 seconds

Post by scottwilkerson »

please attach your nsclient.ini and nsclient.log from the Windows server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Dharan
Posts: 15
Joined: Tue Feb 20, 2018 1:33 pm

Re: CRITICAL - Socket timeout after 10 seconds

Post by Dharan »

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

Post by scottwilkerson »

you need to add your nagios XI server IP to this filed in your nsclient.ini

Code: Select all

allowed hosts = 127.0.0.1,::1
Then restart the service
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Dharan
Posts: 15
Joined: Tue Feb 20, 2018 1:33 pm

Re: CRITICAL - Socket timeout after 10 seconds

Post 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
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

Post by scottwilkerson »

Dharan wrote:although I restart it the status shows failed.
What did you restart? This refers to ndoutils
service ndo2db restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Dharan
Posts: 15
Joined: Tue Feb 20, 2018 1:33 pm

Re: CRITICAL - Socket timeout after 10 seconds

Post 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
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

Post by scottwilkerson »

after restarting can you see any errors in the system log?

Code: Select all

grep ndo2db /var/log/messages
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked