Issues with ModGearman worker script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Issues with ModGearman worker script

Post by dshearon »

I am working my way through the ModGearman installation docs and ran into an issue when trying to install it on the worker. I received the error message below, the script ran fine on the XI server install. Any ideas?

ERROR
Invalid distribution: . Note: DEB-based distributions are no longer supported by this script.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Issues with ModGearman worker script

Post by benjaminsmith »

HI,

Unfortunately, there are some compatibility issues on Debian/Ubuntu and mod-gearman packages provided by our installer supports Cent / RHEL right now.
Mod Gearman is supported on the following distributions:
• CentOS/ RHEL/OracleLinux 7+
Integrating Mod-Gearman With Nagios XI

Let me know if you have further questions.

Best Regards,
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!
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Re: Issues with ModGearman worker script

Post by dshearon »

The error message was received on a CentOS 8 server. The script ran fine on the same OS for the server install portion. I assumed the worker install would work as well, are we currently limited to CentOS 7 if we want to use ModGearman?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Issues with ModGearman worker script

Post by benjaminsmith »

Hi,

We've been able to replicate this issue. I'm working with QA on this right now and filing a bug report to get it fixed. Thanks for bringing this to our attention.

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!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issues with ModGearman worker script

Post by lmiltchev »

It seems like you found a bug with the MG worker script. Try the following:

1. Make sure that the nagios repo is installed. If it's not, you can install it by running:

Code: Select all

rpm -Uvh https://repo.nagios.com/nagios/8/nagios-repo-8-1.el8.noarch.rpm
2. Open the ModGearmanInstall.sh script in a text editor, e.g. vi, go to line 155, and change it from this:

Code: Select all

if rpm -q centos-release; then
to this:

Code: Select all

if rpm -q centos-release || rpm -q centos-linux-release; then
Save and exit.

3. Run the script:

Code: Select all

./ModGearmanInstall.sh --type=worker
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Re: Issues with ModGearman worker script

Post by dshearon »

That appears to have done the trick. Thank you for the help.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issues with ModGearman worker script

Post by lmiltchev »

You are welcome! I am glad I could help! :D
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked