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
Mod Gearman 3 - Notifications Queue
-
swolf
Re: Mod Gearman 3 - Notifications Queue
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.
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
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?
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
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.