Page 1 of 1

Nagios XI Mod-Gearman event handler

Posted: Wed Nov 26, 2025 3:55 am
by occ
How do I enable event handlers for workers on Nagios XI?
I couldn't find the specific option in the GUI. I can enable it by editing the worker configuration file, but clicking "sync" resets it to "no."

Re: Nagios XI Mod-Gearman event handler

Posted: Wed Nov 26, 2025 10:25 am
by gwesterman
Hi @occ,

We have disabled the eventhandlers from running on the Gearman workers because the eventhandlers that are used in XI require access to the XI server's data, files, database, etc. which the Gearman Worker cannot access so the workers cannot have that enabled.

You can always override the interface and manually edit the worker configuration files (as you've noted), but that will mean your worker is out of sync with XI and re-syncing it will override your changes.

What is your use-case for running eventhandlers via Gearman?

Thank you!

Re: Nagios XI Mod-Gearman event handler

Posted: Wed Nov 26, 2025 11:53 am
by DoubleDoubleA
Hi @occ,

To add just a little more context, it is entirely an XI thing. XI has default event handlers that would break if we allowed handlers to run on workers, since they are expecting to run locally with access to local info.

If your primary goal with a Nagios Mod-Gearman approach is to increase capacity by shifting compute off the XI, depending on your network architecture, you could put an https server on the worker to receive a call from your XI to run the event handler on the worker.

I gave a talk at the Nagios World Conference last month about shifting event handlers out to Event Driven Ansible, which is another decent strategy for getting compute off your XI.

Aaron