UNKNOWN: Execution exceeded timeout threshold of 60s

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
eaglebbs
Posts: 5
Joined: Thu Feb 23, 2017 4:34 pm

UNKNOWN: Execution exceeded timeout threshold of 60s

Post by eaglebbs »

Hello,

I've juste upgraded my RASPBERRY PI 2 installation under Rasbian to use:
_Nagios last version 4.4.5
_Last version Nagios Plugin's
_Last version NCPA plugin

All actives request from Nagios TO my virtual Windows servers are
-sometimes in Flapping
-Mainly with critical errors "UNKNOWN: Execution exceeded timeout threshold of 60s"

I've checked the firewall, Nagios requests are accepted.
I've tried to modify nagios.cfg service_check_timout modification (60,120,240) with same results

I'm sure that NCPA commands are ok because they were at least once in "OK" status

Have you any idea from where is the source of the issue?

Thanks in advance for your support.
Attachments
NCPA_Issues_2019-11-03_22-13-55.pdf
(53.2 KiB) Downloaded 183 times
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: UNKNOWN: Execution exceeded timeout threshold of 60s

Post by cdienger »

Are all the services on the *64ad host checked via ncpa?

In addition to upping service_check_timout, make sure to run the command with the "-T" option to increase the timeout.

Running it with the "-v" option will also output verbose output. This may or may not be helpful in the web UI but can give use some more info if you run it on the command line - are you able to reproduce the issue if you run the plugin directly on the command line ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
eaglebbs
Posts: 5
Joined: Thu Feb 23, 2017 4:34 pm

Re: UNKNOWN: Execution exceeded timeout threshold of 60s

Post by eaglebbs »

Yep all services are managed by check_ncpa.py plugin
command.cfg contain this type of setting -T 240:
2019-11-04_23-35-12.png
2019-11-04_23-35-12.png (11.67 KiB) Viewed 3002 times
On checked endpoint side, ncpa client display some informations correcly (cf enjoined printscreen):
2019-11-05_00-05-15.png
But when i run it manually on nagios server: same threathold timeout issue...
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: UNKNOWN: Execution exceeded timeout threshold of 60s

Post by cdienger »

Edit the ncpa.cfg file found on the Windows machine and set the loglevel to debug:

Code: Select all

logLevel=debug
Restart the service and reproduce. Check the logs under the installation directory's var/log folder.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
eaglebbs
Posts: 5
Joined: Thu Feb 23, 2017 4:34 pm

Re: UNKNOWN: Execution exceeded timeout threshold of 60s

Post by eaglebbs »

cdienger wrote:Edit the ncpa.cfg file found on the Windows machine and set the loglevel to debug:

Code: Select all

logLevel=debug
Restart the service and reproduce. Check the logs under the installation directory's var/log folder.
Modifications done.
Result is suspicious... That seem to be only 2 on 12 checks that are really executed on monitored server:
2019-11-09_13-57-27.png
More suspicious, i've to test disabled all complex firewall rules.
NAGIOS serveurs => managed IP segement full opened
eaglebbs
Posts: 5
Joined: Thu Feb 23, 2017 4:34 pm

Re: UNKNOWN: Execution exceeded timeout threshold of 60s

Post by eaglebbs »

In fact all my problem are a IP routing issue.
Nagios must access to monotired computers into a vlan secured by a router/firewall.

Currently, OR monitored computers can access to internet (internet DNS resolution ok) but nagios is not able to send NCPA request into the VLAN
OR Nagios can send requests to monitored into the VLAN but monitored computers are not able to access to Internet (VLAN external DNS resolution KO)...

I close this subject because it is not a real problem of Nagios & NCPA.

Thanks a lot for your support.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: UNKNOWN: Execution exceeded timeout threshold of 60s

Post by cdienger »

Thanks for the update. Locking.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked