Page 1 of 1

Mod Gearman 3 - Notifications Queue

Posted: Mon Sep 30, 2019 9:27 am
by andyb4u
Hi,

We are planning to upgrade our XI installation with Mod Gearman 2 to Mod Gearman 3. We've noticed that from Gearman 3 notifications can now be offloaded and this seems to be the default. Is there any documentation about how this works exactly as I can't seem to find any? For example we offloaded our Mod Gearman worker queues to separate servers - if wanted to use offloaded notifications would we have to copy some extra nagiosxi directories to our worker servers (/usr/local/nagiosxi/scripts)? We currently use phpmailer to send the notifications from the XI server.

Regards,
Andy

Re: Mod Gearman 3 - Notifications Queue

Posted: Mon Sep 30, 2019 11:13 am
by swolf
Hi Andy,

To be honest, I haven't heard of any other customers using the offloaded notifications so far.

In order to set it up properly, you'll need to migrate all of the relevant scripts for your notification commands to the workers. For the default Nagios XI config this would be quite difficult: xi_host_notification_handler and xi_service_notification_handler both import code from Nagios XI and try to use the nagiosxi database. It sounds like you're using this setup and, given that, I really wouldn't recommend using this option. I'll look into updating the packages so that this is disabled by default.

Re: Mod Gearman 3 - Notifications Queue

Posted: Tue Oct 01, 2019 5:50 am
by andyb4u
Thanks for your quick response.

We won't use the offloaded notifications option. Can I just confirm that all we need to do is to set notifications=no in the module.conf and worker.conf files to disable this?

Re: Mod Gearman 3 - Notifications Queue

Posted: Tue Oct 01, 2019 12:53 pm
by swolf
Yes. It should be sufficient to set the option just in module.conf, but setting them in the worker.conf files won't hurt either.