Mod Gearman 3 - Notifications Queue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Mod Gearman 3 - Notifications Queue

Post 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
swolf

Re: Mod Gearman 3 - Notifications Queue

Post 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.
andyb4u
Posts: 114
Joined: Tue Aug 15, 2017 1:58 am

Re: Mod Gearman 3 - Notifications Queue

Post 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?
swolf

Re: Mod Gearman 3 - Notifications Queue

Post 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.
Locked