Worker shows up in Unhandled hosts "mod_gearman_worker down"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: Worker shows up in Unhandled hosts "mod_gearman_worker d

Post by litsupport.box »

tgriep wrote:In the log file, it looks like the max-jobs that the worker ran was hit. The setting in your config file is set to 1000. Here is the description of what that option is for.
max-jobs
Controls the amount of jobs a worker will do before he exits.
Use this to control how fast the amount of workers will go down after high load times. Disabled when set to 0. Default: 1000

It look like if this limit is hit, it will restart the worker. In the log file, it looks like that happened on your system but the worker wouldn't restart.
You may need to look in other log files to see why that didn't restart. See if there is any information in the messages or debug logs.

You can try and set the max-jobs to 0 to disable it, that should prevent it from restarting and then it will not have that issue.
What are the side effects of it being turned off?
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Worker shows up in Unhandled hosts "mod_gearman_worker d

Post by tgriep »

Actually, I'll take that back about my post of max-jobs. I think this is what caused the worker to restart.
idle-timeout=30
# Time after which an idling worker exists
# This parameter controls how fast your waiting workers will
# exit if there are no jobs waiting.
For some reason it wouldn't restart because of the PID file existed.
pidfile already exists, cannot start
The only thing left to do is to change debug=2 to debug=3 in the worker config file and wait until it fails again to get a better error from the log.
Be sure to check out our Knowledgebase for helpful articles and solutions!
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: Worker shows up in Unhandled hosts "mod_gearman_worker d

Post by litsupport.box »

Still getting this error, and debug level is 3. Log is exactly the same.
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
litsupport.box
Posts: 80
Joined: Wed Apr 02, 2014 7:24 am

Re: Worker shows up in Unhandled hosts "mod_gearman_worker d

Post by litsupport.box »

I will just use this workaround - >

Created cronjob so mod_gearman_worker service gets checked (every hour) start if not working.

http://www.akamaras.com/linux/linux-scr ... s-stopped/
Nagios XI Version : 2014R2.6
fqdn 2.6.32-431.17.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Proxy appears to be in use
VMware Image
Mod Gearman
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Worker shows up in Unhandled hosts "mod_gearman_worker d

Post by lmiltchev »

Do you want us to keep the thread open in case the "workaround" doesn't solve the issue or we can lock this topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked