Page 1 of 1
Issues with ModGearman worker script
Posted: Thu Feb 04, 2021 1:11 pm
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.
Re: Issues with ModGearman worker script
Posted: Thu Feb 04, 2021 3:26 pm
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
Re: Issues with ModGearman worker script
Posted: Thu Feb 04, 2021 3:46 pm
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?
Re: Issues with ModGearman worker script
Posted: Thu Feb 04, 2021 5:13 pm
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
Re: Issues with ModGearman worker script
Posted: Thu Feb 04, 2021 5:24 pm
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:
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.
Re: Issues with ModGearman worker script
Posted: Fri Feb 05, 2021 9:37 am
by dshearon
That appears to have done the trick. Thank you for the help.
Re: Issues with ModGearman worker script
Posted: Fri Feb 05, 2021 9:52 am
by lmiltchev
You are welcome! I am glad I could help!
