Page 1 of 1

Nagios 4.2.1 - Gearman and Service Check Timed Out On Worker

Posted: Tue Aug 08, 2017 9:06 am
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

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

Posted: Wed Aug 09, 2017 3:28 pm
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

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

Posted: Thu Aug 10, 2017 1:50 am
by emi65
Your suggestion WORKS very well

Many Thanks
Emilio

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

Posted: Thu Aug 10, 2017 10:22 am
by cdienger
Glad to help!