Page 1 of 1

Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x

Posted: Tue Mar 25, 2025 5:53 am
by igae1
Hi,

I have a monitoring infrastructure based on Nagios XI and mod_gearman. Currently, I have one master server running Nagios XI and six worker servers that only have nagios-plugins installed (no Nagios Core or Nagios XI). All checks are distributed using mod_gearman.

Due to a security vulnerability, I need to upgrade Nagios XI as soon as possible. However, I’m aware that mod_gearman is no longer compatible starting from Nagios Core 4.5.0.

Since Nagios XI includes an embedded version of Nagios Core, I would like to know:

What is the latest version of Nagios XI that still includes Nagios Core 4.4.x, and therefore remains compatible with mod_gearman?

This would allow me to safely upgrade Nagios XI without breaking my current mod_gearman-based infrastructure.

Thanks in advance for your help.

Best regards,

Re: Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x

Posted: Tue Mar 25, 2025 11:17 am
by DoubleDoubleA
Hi @igae1,

The good news is that we forked mod_gearman to make it compatible with the most recent Core and XI.

I would set up a test server, install the latest XI, and then build nagios_mod_gearman from the zipped code here https://github.com/NagiosEnterprises/nagios-mod-gearman under releases on the right-hand side.

Ultimately the goal is to distribute mod_gearman and provide XI interface support for it. No clear insight on that timing, however.

Aaron

Re: Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x

Posted: Thu Mar 27, 2025 2:37 am
by igae1
Hi Aaron,

That's fantastic news, thank you for the update.

I'm currently preparing a test server to try the upgrade to the latest version of Nagios XI along with the updated nagios_mod_gearman from the repository you shared.

I'll make sure to provide feedback here as soon as I complete the testing.

Thanks again for your support!

Best regards,

Re: Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x

Posted: Thu Mar 27, 2025 7:23 am
by igae1
Hi again,

I successfully installed the new nagios-mod-gearman on my Nagios XI server running on RHEL8.

These were the steps I followed:

First of all, I upgraded Nagios XI, disabling the mod_gearman NEB broker in nagios.cfg.

Then, I cleaned up the previous gearmand and mod_gearman installation.

Code: Select all

 
 sudo systemctl stop gearmand
 sudo systemctl disable gearmand
 sudo yum remove mod_gearman -y 
 
Next, I removed leftover files:

Code: Select all

 
 sudo rm -rf /etc/mod_gearman/
 sudo rm -f /usr/lib64/nagios/mod_gearman.o
 sudo rm -f /etc/nagios/mod_gearman.conf
 
Then I followed the GitHub instructions, which on 27/03/2025, for version 1.0.1 in RHEL8 were:

Dependencies installation:

Code: Select all

 
 yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
 yum install autoconf automake libtool boost-devel boost-program-options libgearman libgearman-devel libtool-ltdl-devel ncurses-devel rpm-build gearmand 
 
Then, the nagios-mod-gearman installation:

Code: Select all

 
 cd /tmp 
 wget https://github.com/NagiosEnterprises/nagios-mod-gearman/archive/refs/tags/v1.0.1.zip 
 unzip nagios-mod-gearman-1.0.1.zip 
 cd nagios-mod-gearman-1.0.1 
 chmod a+x autogen.sh 
 ./autogen.sh 
 ./configure 
 make 
 make install 
 make rpm 
 yum localinstall nagios-mod-gearman-1.0.1-1.el8.x86_64.rpm 
 systemctl enable gearmand
 systemctl start gearmand
 
After that, I just updated /etc/nagios-mod-gearman/module.conf like I had it before, and added the broker line back into nagios.cfg:

Code: Select all

 
broker_module=/usr/lib64/nagios-mod-gearman/nagios-mod-gearman.o config=/etc/nagios-mod-gearman/module.conf eventhandler=no
After restarting, it started working just like before the upgrade.

I'm only missing one thing: I used to monitor mod_gearman using gearman_top, but it no longer works.

How can I monitor queues and workers in nagios-mod-gearman now?

Thank you for your support and for this great fork.

Best regards,

Re: Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x

Posted: Thu Mar 27, 2025 1:50 pm
by DoubleDoubleA
Hi @igae1,

gearman_top should work, and it seems to work for us in our testing, since we are bringing that into the XI interface as well.

When you say it doesn't work, do you have more information? How does it not work? How does it fail? Is there an error message?

Aaron

Re: Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x

Posted: Thu Mar 27, 2025 3:36 pm
by tgriep
The command name has been changed for the Nagios provided Mod Gearman so use this command from now on.

nagios-gearman-top

Thank You.