EventHandler on Distribute Nagios XI - GEARMAN

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: EventHandler on Distribute Nagios XI - GEARMAN

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lb2cons
Posts: 72
Joined: Mon Dec 08, 2014 4:11 pm

Re: EventHandler on Distribute Nagios XI - GEARMAN

Post by lb2cons »

Queue Name | Worker Available | Jobs Waiting | Jobs Running
----------------------------------------------------------------------
check_results | 1 | 0 | 0
eventhandler | 10 | 0 | 0
...
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: EventHandler on Distribute Nagios XI - GEARMAN

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
lb2cons
Posts: 72
Joined: Mon Dec 08, 2014 4:11 pm

Re: EventHandler on Distribute Nagios XI - GEARMAN

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: EventHandler on Distribute Nagios XI - GEARMAN

Post by tgriep »

I agree, that is a huge downside.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked