Page 2 of 2

Re: EventHandler on Distribute Nagios XI - GEARMAN

Posted: Mon Sep 28, 2015 3:07 pm
by tgriep
I just found this on the Mod Gearman web site.
eventhandler
This is the generic queue for all eventhandler. Make sure you have a worker for this queue if you have eventhandler enabled. Start the worker with --events to work on this queue
So it looks like that the worker has have the --events added to the command line on the worker for it to see the eventhandler queue.
The only downside is that there doesn't seem to be a way to push an eventhandler to a certain worker so adding eventhander may not work as you want.

Re: EventHandler on Distribute Nagios XI - GEARMAN

Posted: Wed Sep 30, 2015 8:07 am
by lb2cons
Queue Name | Worker Available | Jobs Waiting | Jobs Running
----------------------------------------------------------------------
check_results | 1 | 0 | 0
eventhandler | 10 | 0 | 0
...

Re: EventHandler on Distribute Nagios XI - GEARMAN

Posted: Wed Sep 30, 2015 9:02 am
by tgriep
The gearman server see's the eventhandler but have you added the "--events" option to the worker you want to run them?
Can you check the log's on the worker to see if it is seeing that the eventhandler is enabled?

Re: EventHandler on Distribute Nagios XI - GEARMAN

Posted: Mon Oct 05, 2015 2:19 pm
by lb2cons
When you pass a config file doesn't need to pass "--eventhandler" as a parameter since this attribute it's defined inside the config. file, but, I've just tested with "--venthandler" and again the worker didn't received the event handler check.
tgriep wrote: So it looks like that the worker has have the --events added to the command line on the worker for it to see the eventhandler queue.
The only downside is that there doesn't seem to be a way to push an eventhandler to a certain worker so adding eventhander may not work as you want.
This it's a huge downside for me since we monitor our customers with workers to avoid use of VPN, now we want to use event handler and based on what we discussed this is impossible. :o :o

Re: EventHandler on Distribute Nagios XI - GEARMAN

Posted: Tue Oct 06, 2015 10:34 am
by tgriep
I agree, that is a huge downside.