Page 1 of 1

FULLINSTALL error

Posted: Sun Dec 30, 2018 12:15 pm
by ericlooi
Dear,

I am new in this forum.
I am trying to install Nagios Log Server on Linux Redhat Enterprise edition version 7.4.
When I ran ./fullinstall then I got this error of pre-requisite dependency.

Error: Package: python2-pip-8.1.2-6.el7.noarch (epel)
Requires: python-setuptools

Please advise.
Thanks.

---
Regards,
Eric

Re: FULLINSTALL error

Posted: Wed Jan 02, 2019 11:57 am
by bolson
Hello ericlooi, the fullinstall script generates a file "install.log" Please private message me and attach the file. This will help my diagnose the issue you're experiencing. Thank you!

Re: FULLINSTALL error

Posted: Thu Jan 03, 2019 1:31 am
by ericlooi
Hi Brian Olson,

Please find attached the install.log file for your reference.
Keep me posted on the root cause and how to resolve it.
I am trying to install into Linux Redhat Enterprise version 7.4.
The server is not connected directly to Internet.
I need to install NagiosLogServer offline.

Thanks.

---
Regards,
ericlooi

Re: FULLINSTALL error

Posted: Thu Jan 03, 2019 12:24 pm
by bolson
Hello ericlooi,

Here's a link to our documentation for installing Nagios Logserver in an offline environment. Let us know if you have any additional questions.

https://support.nagios.com/kb/article/n ... n-495.html

Re: FULLINSTALL error

Posted: Fri Feb 15, 2019 4:16 pm
by MattPie
I stumbled onto this thread looking for offline install instructions. It looks like there's an update between when the linked instructions were written and version 2.0.7 where the logstash installer goes out and looks for Ruby Gems on its own, which isn't handled in the offline link. These are the relevant areas in the logs:

Code: Select all

Installing Logstash...
Applying Nagios patches to Logstash...
Updating Logstash plugins...
Error Bundler::HTTPError, retrying 1/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 2/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 3/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 4/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 5/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 6/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 7/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 8/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 9/10
Could not fetch specs from https://rubygems.org/
Error Bundler::HTTPError, retrying 10/10
Could not fetch specs from https://rubygems.org/
Too many retries, aborting, caused by Bundler::HTTPError
ERROR: Updated Aborted, message: Could not fetch specs from https://rubygems.org/

===================
INSTALLATION ERROR!
===================
I tracked the command down to nagioslogserver/subcomponents/logstash/post-install, which re-writes the Gemfile and then tries to update from https://rubygems.org:

Code: Select all

# Update logstash input tcp for tcp connection leaks nagioslogserver/subcomponents/logstash/post-install
if [ $JAVA_VER -eq 8 ]; then
        sed -i 's/gem "logstash-input-tcp".*/gem "logstash-input-tcp", "~>4"/' /usr/local/nagioslogserver/logstash/Gemfile
        /usr/local/nagioslogserver/logstash/bin/logstash-plugin update logstash-input-tcp
fi
I've been trying to use bundler to package up this update and install it, but being a ruby novice I'm running into a bunch of trouble.

Any ideas on how to package up the correct gems to make this update work offline?

Re: FULLINSTALL error

Posted: Fri Feb 15, 2019 5:05 pm
by cdienger
The offline install KB is in need of updating.

Before running the install on the offline machine you'll also want to edit /tmp/nagioslogserver/subcomponents/logstash/post-install and comment out the line:

# /usr/local/nagioslogserver/logstash/bin/logstash-plugin update logstash-input-tcp

After the install, you can update the logstash-input-tcp plugin by copying it to /tmp and running:

/usr/local/nagioslogserver/logstash/bin/logstash-plugin install --local /tmp/logstash-input-tcp-4.2.4-java.gem

logstash-input-tcp-4.2.4-java.txt is attached. You'll need to rename it to logstash-input-tcp-4.2.4-java.gem. If you need any further assistance with this going forward, please open a new thread.