Page 1 of 1

Nagios XI / Mod-Gearman worker install question

Posted: Mon Oct 07, 2019 1:52 pm
by kwarshaw
We are looking to integrate Mod-Gearman into our current Nagios XI environment. I've setup and configured the server portion of Mod-Gearman on our current Nagios XI host with no issues. Now we need to setup the Mod-Gearman worker, which will exist in a different physical location than the Nagios XI /MG server.

What I'm unclear on is this - does the MG worker installation have to be done on a system with Nagios XI already installed? Or can it be done on just a base CentOS (or other Linux OS) install? The Nagios documentation that I'm using: https://assets.nagios.com/downloads/nag ... ios_XI.pdf doesn't seem to be clear on that point (at least in my interpretation). If the MG worker can be installed on a base CentOS system can anyone provide documentation on how to accomplish that?

Thanks in advance.

Re: Nagios XI / Mod-Gearman worker install question

Posted: Tue Oct 08, 2019 1:00 pm
by cdienger
It can be installed on just a base install of CentOS. See the "worker installation" section:

Code: Select all

cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/scripts/ModGearmanInstall.sh 
chmod +x ModGearmanInstall.sh
./ModGearmanInstall.sh --type=worker

Re: Nagios XI / Mod-Gearman worker install question

Posted: Wed Oct 09, 2019 3:40 pm
by kwarshaw
Thanks for the reply. That's actually the first thing I tried, but it doesn't work for me. Here's what I get when I run the Mod-Gearman worker install script on a fresh CentOS installation with nothing installed other than OS updates:

--Verifying nagios repo is installed...CentOS-8 - AppStream 668 kB/s | 5.6 MB 00:08
--CentOS-8 - Base 968 kB/s | 5.3 MB 00:05
--CentOS-8 - Extras 1.1 kB/s | 2.1 kB 00:01
--not installed.
--ERROR: Please install the nagios repo with this command: rpm -Uvh https://repo.nagios.com/nagios/8/nagios ... noarch.rpm

When I attempt to run the Nagios repo install as noted in the error message I get this:
--Retrieving https://repo.nagios.com/nagios/8/nagios ... noarch.rpm
--curl: (22) The requested URL returned error: 404 Not Found
--error: skipping https://repo.nagios.com/nagios/8/nagios ... noarch.rpm - transfer failed

So I installed the only Nagios repo version close to that I can find, which is here: https://repo.nagios.com/nagios/8/nagios ... noarch.rpm. That install seemed to go ok... , so I ran the Mod-Gearman worker install once more and now I'm getting this:

--Verifying nagios repo is installed...Last metadata expiration check: 0:04:19 ago on Wed 09 Oct 2019 04:30:59 PM EDT.
--ok
--*******************************************************************************

-- Installing the packages...
--Error:
-- Problem 1: conflicting requests
-- - nothing provides libboost_program_options-mt.so.1.53.0()(64bit) needed by gearmand-1:0.33-7.x86_64
-- - nothing provides libboost_system.so.1.53.0()(64bit) needed by gearmand-1:0.33-7.x86_64
-- Problem 2: cannot install the best candidate for the job
-- - nothing provides libperl.so()(64bit) needed by mod_gearman-3.0.7-1.el7.x86_64
-- Problem 3: package gearmand-devel-1:0.33-7.x86_64 requires libgearman.so.6()(64bit), but none of the providers can be installed
-- - package gearmand-devel-1:0.33-7.x86_64 requires gearmand = 1:0.33-7, but none of the providers can be installed
-- - conflicting requests
-- - nothing provides libboost_program_options-mt.so.1.53.0()(64bit) needed by gearmand-1:0.33-7.x86_64
-- - nothing provides libboost_system.so.1.53.0()(64bit) needed by gearmand-1:0.33-7.x86_64

--*******************************************************************************
--ERROR
--Unable to install packages. Please see the errors above.

--To see usage, run ./ModGearmanInstall.sh --help

So I'm obviously missing something.

Thanks.

Re: Nagios XI / Mod-Gearman worker install question

Posted: Wed Oct 09, 2019 3:44 pm
by scottwilkerson
Sorry, CentOS 8 support is not available yet

Re: Nagios XI / Mod-Gearman worker install question

Posted: Thu Oct 10, 2019 7:20 am
by kwarshaw
Well that would explain a lot! Thanks.

I'll drop back to CentOS 7 and will post an update later.

Thanks for the replies.

Re: Nagios XI / Mod-Gearman worker install question

Posted: Thu Oct 10, 2019 7:27 am
by scottwilkerson
kwarshaw wrote:Well that would explain a lot! Thanks.

I'll drop back to CentOS 7 and will post an update later.

Thanks for the replies.
Sounds good!

Re: Nagios XI / Mod-Gearman worker install question

Posted: Fri Oct 11, 2019 10:18 am
by kwarshaw
Success. Dropping back to CentOS 7 allowed me to install Mod-Gearman on a base CentOS build with nothing other than the Nagios repo. Thanks to everyone that posted.

Re: Nagios XI / Mod-Gearman worker install question

Posted: Fri Oct 11, 2019 10:45 am
by scottwilkerson
kwarshaw wrote:Success. Dropping back to CentOS 7 allowed me to install Mod-Gearman on a base CentOS build with nothing other than the Nagios repo. Thanks to everyone that posted.
Great!

Locking thread