Nagios Core and Mod-Gearman

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
toddf
Posts: 3
Joined: Thu Sep 17, 2020 8:09 pm

Nagios Core and Mod-Gearman

Post by toddf »

I'm very newbie with Nagios and have spent the past couple weeks reviewing and learning about Nagios. We are deploying Nagios in AWS and would like to use Mod-Gearman for load-balancing. I reviewed the distributed monitoring options and it appears that Mod-Gearman will work with Core. I added the Nagios repo and installed gearman packages with yum on our instance at AWS. The gearmand package installs but always fails to start (the worker service installs and runs fine). Here are the steps and error received.

rpm -Uvh https://repo.nagios.com/nagios/7/nagios ... noarch.rpm
yum install gearmand gearmand-devel gearmand-server mod_gearman mod_gearman-debuginfo
Installed:
gearmand.x86_64 1:0.33-7 gearmand-devel.x86_64 1:0.33-7 gearmand-server.x86_64 1:0.33-7 mod_gearman.x86_64 0:3.0.7-1.el7
mod_gearman-debuginfo.x86_64 0:3.0.7-1.el7

Dependency Installed:
ncurses-compat-libs.x86_64 0:6.0-8.20170212.amzn2.1.3
boost-program-options.x86_64 0:1.53.0-27.amzn2.0.3

Has anyone had luck installing Mod-Gearman on Amazon Linux?

My second question is can we run a new Core version (we have 4.4.6 installed currently) with Mod-Gearman? I have read some old posts that Mod-Gearman won't work with Core after version 4.2.x but I am not finding a definitive answer as those posts are ~2 years old.

I appreciate any feedback and advice.

Todd
toddf
Posts: 3
Joined: Thu Sep 17, 2020 8:09 pm

Re: Nagios Core and Mod-Gearman

Post by toddf »

Just noticed I forgot to post the gearmand error...

gearmand: /usr/sbin/gearmand: symbol lookup error: /usr/sbin/gearmand: undefined symbol: _ZN5boost15program_options3argE

Apologies.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios Core and Mod-Gearman

Post by gormank »

It isn't an answer to your question but I'd skip gearman until (or unless you) need it. I recently got rid of gearman on the last few hosts that had it configured. Same with the ramdisk.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios Core and Mod-Gearman

Post by benjaminsmith »

Hi @toddf,

I think Gormank has a good point. Mod Gearman is great software but it also raises the overall complexity and time required to administer. I'd wait to integrate that until it's really needed.

Also, using passive services is another option here.

--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
toddf
Posts: 3
Joined: Thu Sep 17, 2020 8:09 pm

Re: Nagios Core and Mod-Gearman

Post by toddf »

I did finally get this working in AWS. Using docker containers to run both the gearman job servers and workers. It should allow us to scale up easily. We are still waiting on some firewall rules to test running checks on servers but having everything communicate was a good first step. I will post again on this topic once we get everything running.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios Core and Mod-Gearman

Post by benjaminsmith »

I did finally get this working in AWS. Using docker containers to run both the gearman job servers and workers.
Nice!

Looking forward to your update.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked