Page 1 of 1

NCPA - Service check timed out after 60.01 seconds

Posted: Thu Dec 28, 2017 9:24 am
by senthilc
Hi,

We are using NCPA agent and getting lot of "Service check timed out after 60.01 seconds" for different services. The same windows client was working fine prior to adding 15 checks.This happens on different Windows servers.

Out of 30 servers, 6 servers have this issue. Any way to increase the default time out of 60 seconds on ncpa.cfg locally rather than changing on check_ncpa at nagiosxi side?

Thanks for your help.
Senthil.

Re: NCPA - Service check timed out after 60.01 seconds

Posted: Thu Dec 28, 2017 10:51 am
by kyang
In that same ncpa.cfg file,

Code: Select all

/usr/local/ncpa/etc/ncpa.cfg
There is an option --> plugin_timeout = 60

Code: Select all

 Plugin execution timeout in seconds. Different than the check_ncpa.py timeout, which is
# normally for network connection issues.
The default is 60, so you can uncomment and increase the value to see if that helps.

Re: NCPA - Service check timed out after 60.01 seconds

Posted: Thu Dec 28, 2017 1:43 pm
by senthilc
Thanks for your reply. I changed that value to 120 and restarted the ncpa service. However, I am still getting the same error Service check timed out after 60.01 seconds

Re: NCPA - Service check timed out after 60.01 seconds

Posted: Thu Dec 28, 2017 1:59 pm
by kyang
Sorry, I must have thought about the wrong thing.
That is the only option I see in the ncpa.cfg

Would adding a -T 120 to the check_ncpa.py command work for you? That should increase the timeout on all checks.

Since the default is 60.

Code: Select all

  -T TIMEOUT, --timeout=TIMEOUT
                        Enforced timeout, will terminate plugins after this
                        amount of seconds. [60]

Code: Select all

# 'check_ncpa' command definition
define command {
    command_name    check_ncpa
    command_line    $USER1$/check_ncpa.py -H $HOSTADDRESS$ -T 120 $ARG1$
}