NCPA - Service check timed out after 60.01 seconds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
senthilc
Posts: 11
Joined: Wed Oct 04, 2017 2:50 pm

NCPA - Service check timed out after 60.01 seconds

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

Re: NCPA - Service check timed out after 60.01 seconds

Post 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.
senthilc
Posts: 11
Joined: Wed Oct 04, 2017 2:50 pm

Re: NCPA - Service check timed out after 60.01 seconds

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

Re: NCPA - Service check timed out after 60.01 seconds

Post 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$
}
Locked