Page 1 of 1
how can solve Socket timeout problem for windows server
Posted: Tue Dec 13, 2016 10:56 am
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
Re: how can solve Socket timeout problem for windows server
Posted: Tue Dec 13, 2016 11:21 am
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.
Re: how can solve Socket timeout problem for windows server
Posted: Tue Dec 13, 2016 11:49 am
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 ?
Re: how can solve Socket timeout problem for windows server
Posted: Tue Dec 13, 2016 11:57 am
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
Re: how can solve Socket timeout problem for windows server
Posted: Tue Dec 13, 2016 1:23 pm
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 ?
Re: how can solve Socket timeout problem for windows server
Posted: Tue Dec 13, 2016 3:38 pm
by dwhitfield
Yep!
For others running into issues, check out page 17 (section 6) of
https://assets.nagios.com/downloads/nag ... e/NRPE.pdf