FULLINSTALL error

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ericlooi
Posts: 2
Joined: Sun Dec 30, 2018 11:40 am

FULLINSTALL error

Post 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
bolson

Re: FULLINSTALL error

Post 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!
ericlooi
Posts: 2
Joined: Sun Dec 30, 2018 11:40 am

Re: FULLINSTALL error

Post 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
You do not have the required permissions to view the files attached to this post.
bolson

Re: FULLINSTALL error

Post 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
MattPie
Posts: 1
Joined: Fri Feb 15, 2019 4:06 pm

Re: FULLINSTALL error

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: FULLINSTALL error

Post 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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked