Page 1 of 2

New Offline Installation Instructions

Posted: Tue Jun 18, 2019 2:00 pm
by cgutierr
Hello,


Can Nagios Support provide new instructions for an offline installation? The instructions I found doesn't seem to work anymore with the newest version of Python PIP.


V/R,


Chris G.

Re: New Offline Installation Instructions

Posted: Tue Jun 18, 2019 2:23 pm
by npolovenko
@cgutierr, Are you following this instruction? I believe it should just install all rpm packages locally with yum.
https://assets.nagios.com/downloads/nag ... onment.pdf

Also, what is the version of your operating system?

Re: New Offline Installation Instructions

Posted: Tue Jun 18, 2019 2:27 pm
by cgutierr
I'm looking for offline installation instructions for Nagios Log Server not Nagios XI. Here are the instructions I was using before:

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

Re: New Offline Installation Instructions

Posted: Tue Jun 18, 2019 2:41 pm
by cdienger
What OS is this? What version of pip? Are you getting a specific error or warning message?

The steps were recently updated and should work. Any other details you can provide can help us narrow the problem down and/or update the doc.

Re: New Offline Installation Instructions

Posted: Tue Jun 18, 2019 3:03 pm
by cgutierr
This is on a RHEL7 OS with PIP version 19.1.1 as the download server. When I run this command:

[root@download]# grep 'pip install' fullinstall | sed 's/pip install/& -d \/tmp\/pipfiles\//' | source /dev/stdin

Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...

no such option: -d

Re: New Offline Installation Instructions

Posted: Wed Jun 19, 2019 11:36 am
by cdienger
Try this instead:

Code: Select all

grep 'pip install' fullinstall | sed 's/pip install --upgrade/pip download -d \/tmp\/pipfiles\//' | source /dev/stdin

Re: New Offline Installation Instructions

Posted: Wed Jun 19, 2019 1:49 pm
by cgutierr
On the last step when I run this:

[root@nls bin]# cd /usr/local/nagioslogserver/logstash/bin/
[root@nls bin]# ./logstash-plugin install --local /tmp/logstash-input-tcp-4.2.4-java.gem
Validating /tmp/logstash-input-tcp-4.2.4-java.gem
Installing logstash-input-tcp
Plugin not found, aborting
ERROR: Installationn Aborted, message: Could not find gem 'logstash-filter-geoip
(= 4.0.4) java' in any of the gem source listed in your Gemfile or installed
on this machine.

Re: New Offline Installation Instructions

Posted: Wed Jun 19, 2019 4:50 pm
by cdienger
Run this on the server that has internet access:

Code: Select all

wget https://rubygems.org/downloads/logstash-filter-geoip-4.0.4-java.gem
Then transfer it to the /tmp directory on the NLS machine and run:

Code: Select all

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

Re: New Offline Installation Instructions

Posted: Thu Jun 20, 2019 9:08 am
by cgutierr
Thank you this worked!

Re: New Offline Installation Instructions

Posted: Thu Jun 20, 2019 2:03 pm
by cdienger
Thanks for the update! I'll see that the document gets updated.