Nagios 4.2.1 - Gearman and Service Check Timed Out On Worker

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
emi65
Posts: 129
Joined: Fri Aug 17, 2012 3:41 am

Nagios 4.2.1 - Gearman and Service Check Timed Out On Worker

Post by emi65 »

Hi expert

Sometimes I got the error
Service Check Timed Out On Worker ....
and in the nagios environment the check is set to CRITICAL state

In nagios.cfg I set
service_check_timeout_state=u
but this option is not respected in case of WORKER TIMEOU

Is there a parameter to set the check default state to UNKNOWN
in gearman configuration ?

Many Thanks for your help ?
Regads
Emilio
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios 4.2.1 - Gearman and Service Check Timed Out On Wo

Post by cdienger »

In /usr/share/mod_gearman2/standalone_worker.conf is a seciton that looks like:

Code: Select all

# timeout_return defines the return code for timed out checks. Accepted return
# codes are 0 (Ok), 1 (Warning), 2 (Critical) and 3 (Unknown) Default: 2
timeout_return=2
Try changing the timeout_return to 3 then restart gearman:

Code: Select all

service mod-gearman2-worker restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
emi65
Posts: 129
Joined: Fri Aug 17, 2012 3:41 am

Re: Nagios 4.2.1 - Gearman and Service Check Timed Out On Wo

Post by emi65 »

Your suggestion WORKS very well

Many Thanks
Emilio
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios 4.2.1 - Gearman and Service Check Timed Out On Wo

Post by cdienger »

Glad to help!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked