how can solve Socket timeout problem for windows server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

how can solve Socket timeout problem for windows server

Post by baber »

dear all
Hi

i have installed nsclient on my windows server for monitoring windows servers via nagios all of my windows servers are available but on some of them every a few minutes show this critical message :

Code: Select all

CRITICAL - Socket timeout after 10 seconds 
but all of that services are ok

what is my problem ? how can solve that ?

BR
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: how can solve Socket timeout problem for windows server

Post by dwhitfield »

On whatever command that is timing out, add a -t 20. Keep making the number larger until it goes away. Basically, since there are a number of checks, some of them are taking longer than 10 seconds.

This might be a sign of network latency or some performance issue, but as long as it's just a few services, and especially at 10 seconds, it's nothing to worry about.
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can solve Socket timeout problem for windows server

Post by baber »

dwhitfield wrote:On whatever command that is timing out, add a -t 20. Keep making the number larger until it goes away. Basically, since there are a number of checks, some of them are taking longer than 10 seconds.

This might be a sign of network latency or some performance issue, but as long as it's just a few services, and especially at 10 seconds, it's nothing to worry about.

for example change this from :

Code: Select all

define service{
	use			                 local-service
	host_name		         EC
	service_description	         Memory Usage
	check_command		check_nt!MEMUSE!-w 90 -c 95 
	}


to

Code: Select all

define service{
	use			                       local-service
	host_name		               EC
	service_description	               Memory Usage
	check_command		       check_nt!MEMUSE!-w 90 -c 95 [b]-t 20[/b]
	}


is that correct ?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: how can solve Socket timeout problem for windows server

Post by dwhitfield »

Code: Select all

define service{
	use			                       local-service
	host_name		               EC
	service_description	               Memory Usage
	check_command		       check_nt!MEMUSE!-w 90 -c 95 [b]-t 20[/b]
	}

Sorta. Your bold tags don't work within the code tag, and aren't going to work in the check...I assume you did that just to emphasize the check though.

More info at https://nagios-plugins.org/doc/man/check_nt.html
baber
Posts: 308
Joined: Wed Oct 21, 2015 4:39 am

Re: how can solve Socket timeout problem for windows server

Post by baber »

dwhitfield wrote:

Code: Select all

define service{
	use			                       local-service
	host_name		               EC
	service_description	               Memory Usage
	check_command		       check_nt!MEMUSE!-w 90 -c 95 [b]-t 20[/b]
	}

Sorta. Your bold tags don't work within the code tag, and aren't going to work in the check...I assume you did that just to emphasize the check though.

More info at https://nagios-plugins.org/doc/man/check_nt.html

thanks

some of services are

Code: Select all

define service{
	use			local-service
	host_name		EC-OEG-ESB
	service_description	Time
	check_command		check_nrpe!check_windows_time
	}

for check_nrpe what do i have to use ? -t ?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: how can solve Socket timeout problem for windows server

Post by dwhitfield »

Yep! :)

For others running into issues, check out page 17 (section 6) of https://assets.nagios.com/downloads/nag ... e/NRPE.pdf
Locked