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,
Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x
-
- Posts: 199
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x
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
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
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,
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
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.
Next, I removed leftover files:
Then I followed the GitHub instructions, which on 27/03/2025, for version 1.0.1 in RHEL8 were:
Dependencies installation:
Then, the nagios-mod-gearman installation:
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:
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,
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
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
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
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
Code: Select all
broker_module=/usr/lib64/nagios-mod-gearman/nagios-mod-gearman.o config=/etc/nagios-mod-gearman/module.conf eventhandler=no
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,
-
- Posts: 199
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Nagios XI Compatibility with mod_gearman - Last Version with Nagios Core 4.4.x
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
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
The command name has been changed for the Nagios provided Mod Gearman so use this command from now on.
nagios-gearman-top
Thank You.
nagios-gearman-top
Thank You.
Be sure to check out our Knowledgebase for helpful articles and solutions!