Nagios LogServer Offline issue

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
scott.brown8
Posts: 13
Joined: Thu Jan 23, 2020 4:16 pm

Nagios LogServer Offline issue

Post by scott.brown8 »

So, following the https://support.nagios.com/kb/article/n ... n-495.html instructions, there is nothing that populates the /tmp/pipfiles directory..
Here is my output from running the instructions.. Are there updated instructions? We gave up on the upgrade as nothing worked, so we're trying to just install as new.



[root@nagios3 ~]# yum install -y python-pip openssh-clients wget
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.


You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key


Alternatively you can specify the url to the key you would like to use
for a repository in the 'gpgkey' option in a repository section and yum
will install it for you.

For more information contact your distribution or package provider.

Problem repository: LocalRepo
[root@nagios3 ~]# yum install -y python-pip openssh-clients wget --nogpgcheck
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Package openssh-clients-7.4p1-21.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package python2-pip.noarch 0:8.1.2-12.el7 will be installed
---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================
Installing:
python2-pip noarch 8.1.2-12.el7 epel 1.7 M
wget x86_64 1.14-18.el7_6.1 LocalRepo 547 k

Transaction Summary
==============================================================================================================================================================================================
Install 2 Packages

Total download size: 2.2 M
Installed size: 9.1 M
Downloading packages:
python2-pip-8.1.2-12.el7.noarch.rpm | 1.7 MB 00:00:02
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 919 kB/s | 2.2 MB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : wget-1.14-18.el7_6.1.x86_64 1/2
Installing : python2-pip-8.1.2-12.el7.noarch 2/2
Verifying : python2-pip-8.1.2-12.el7.noarch 1/2
Verifying : wget-1.14-18.el7_6.1.x86_64 2/2

Installed:
python2-pip.noarch 0:8.1.2-12.el7 wget.x86_64 0:1.14-18.el7_6.1

Complete!
[root@nagios3 ~]# which pip
/usr/bin/pip
[root@nagios3 ~]# cd /tmp
[root@nagios3 tmp]# mkdir /tmp/pipfiles
[root@nagios3 tmp]# wget https://assets.nagios.com/downloads/nag ... est.tar.gz
--2020-04-14 13:25:57-- https://assets.nagios.com/downloads/nag ... est.tar.gz
Resolving contractorproxyeast.northgrum.com (contractorproxyeast.northgrum.com)... 134.223.121.43
Connecting to contractorproxyeast.northgrum.com (contractorproxyeast.northgrum.com)|134.223.121.43|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 224359873 (214M) [application/x-gzip]
Saving to: ‘nagioslogserver-latest.tar.gz’

100%[====================================================================================================================================================>] 224,359,873 10.8MB/s in 20s

2020-04-14 13:26:19 (10.4 MB/s) - ‘nagioslogserver-latest.tar.gz’ saved [224359873/224359873]

[root@nagios3 tmp]# tar xzf nagioslogserver-latest.tar.gz nagioslogserver/fullinstall \
> nagioslogserver/libinstall.sh \
> nagioslogserver/subcomponents/ncpa/install \
> nagioslogserver/subcomponents/wkhtmltox/install --strip-components 1
[root@nagios3 tmp]# sed -i 's/^std_checks$/#std_checks/' libinstall.sh
[root@nagios3 tmp]# . libinstall.sh
[root@nagios3 tmp]# sed -i 's/wget \(.*\)/wget \1; exit 0;/' subcomponents/ncpa/install
[root@nagios3 tmp]# sed -i 's/wget \(.*\)/wget \1; exit 0;/' subcomponents/wkhtmltox/install
[root@nagios3 tmp]# ./subcomponents/ncpa/install "$distro" "$dist" "$ver"
INSTALL: NCPA is being installed...
--2020-04-14 13:27:15-- https://repo.nagios.com/nagios/7/ncpa-2 ... x86_64.rpm
Resolving contractorproxyeast.northgrum.com (contractorproxyeast.northgrum.com)... 134.223.121.43
Connecting to contractorproxyeast.northgrum.com (contractorproxyeast.northgrum.com)|134.223.121.43|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 11095284 (11M) [application/x-rpm]
Saving to: ‘ncpa-2.2.1.el7.x86_64.rpm’

100%[====================================================================================================================================================>] 11,095,284 7.10MB/s in 1.5s

2020-04-14 13:27:17 (7.10 MB/s) - ‘ncpa-2.2.1.el7.x86_64.rpm’ saved [11095284/11095284]

[root@nagios3 tmp]# ./subcomponents/wkhtmltox/install "$distro" "$dist"
INSTALL: wkhtmltox is being installed...
--2020-04-14 13:27:29-- https://assets.nagios.com/downloads/nag ... x86_64.rpm
Resolving contractorproxyeast.northgrum.com (contractorproxyeast.northgrum.com)... 134.223.121.43
Connecting to contractorproxyeast.northgrum.com (contractorproxyeast.northgrum.com)|134.223.121.43|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 14094280 (13M) [application/x-rpm]
Saving to: ‘wkhtmltox-0.12.1.3.el7.x86_64.rpm’

100%[====================================================================================================================================================>] 14,094,280 7.81MB/s in 1.7s

2020-04-14 13:27:32 (7.81 MB/s) - ‘wkhtmltox-0.12.1.3.el7.x86_64.rpm’ saved [14094280/14094280]

[root@nagios3 tmp]# grep 'pip install' fullinstall | sed 's/pip install --upgrade/pip download -d \/tmp\/pipfiles\//' | source /dev/stdin
[root@nagios3 tmp]# cd /tmp/pipfiles/
[root@nagios3 pipfiles]# ls
[root@nagios3 pipfiles]# ll
total 0
[root@nagios3 pipfiles]# cd ..
[root@nagios3 tmp]# ll
total 243744
-rwxr-xr-x. 1 root root 11667 Mar 24 08:37 fullinstall
-rwx------. 1 root root 836 Apr 13 15:58 ks-script-Q2iQiH
-rwxr-xr-x. 1 root root 21750 Apr 14 13:26 libinstall.sh
-rw-r--r--. 1 root root 224359873 Mar 24 08:39 nagioslogserver-latest.tar.gz
-rw-r--r--. 1 root root 11095284 Feb 26 11:20 ncpa-2.2.1.el7.x86_64.rpm
drwxr-xr-x. 2 root root 6 Apr 14 13:25 pipfiles
drwxr-xr-x. 4 root root 35 Apr 14 13:26 subcomponents
drwx------. 3 root root 17 Apr 14 13:13 systemd-private-81f424a6f6464e0b819ad0fe8842c848-chronyd.service-TYyMfD
drwx------. 2 root root 6 Apr 14 12:54 vmware-root_1060-2957649088
drwx------. 2 root root 6 Apr 13 16:00 vmware-root_1076-2990678736
drwx------. 2 root root 6 Apr 14 13:06 vmware-root_26905-1991601332
drwx------. 2 root root 6 Apr 14 13:13 vmware-root_812-2957648972
-rw-r--r--. 1 root root 14094280 Mar 4 2019 wkhtmltox-0.12.1.3.el7.x86_64.rpm
-rw-------. 1 root root 0 Apr 13 15:52 yum.log
[root@nagios3 tmp]# ll pipfiles/
total 0
[root@nagios3 tmp]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios LogServer Offline issue

Post by ssax »

Please run this command instead:

Code: Select all

grep '\$pipbin install' fullinstall | sed 's/\$pipbin install --upgrade/pip download -d \/tmp\/pipfiles\//' | source /dev/stdin
Updating the article now.

Let us know if you run into any other issues.
scott.brown8
Posts: 13
Joined: Thu Jan 23, 2020 4:16 pm

Re: Nagios LogServer Offline issue

Post by scott.brown8 »

Thanks for the fast response, so that seemed to have worked, but now stuck on the offline server on the first install part using that same link...



[root@nagios1 tmp]# yum install -y python-pip openssh-clients
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Package openssh-clients-7.4p1-21.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package python2-pip.noarch 0:8.1.2-12.el7 will be installed
--> Finished Dependency Resolution
--> Finding unneeded leftover dependencies
Found and removing 0 unneeded dependencies

Dependencies Resolved

==============================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================
Installing:
python2-pip noarch 8.1.2-12.el7 epel 1.7 M

Transaction Summary
==============================================================================================================================================================
Install 1 Package

Total download size: 1.7 M
Installed size: 7.2 M
Downloading packages:
warning: /var/cache/yum/x86_64/7Server/epel/packages/python2-pip-8.1.2-12.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY --:--:-- ETA
Public key for python2-pip-8.1.2-12.el7.noarch.rpm is not installed
python2-pip-8.1.2-12.el7.noarch.rpm | 1.7 MB 00:00:00
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <[email protected]>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-12.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python2-pip-8.1.2-12.el7.noarch 1/1
Verifying : python2-pip-8.1.2-12.el7.noarch 1/1

Installed:
python2-pip.noarch 0:8.1.2-12.el7

Complete!
[root@nagios1 tmp]# which pip
/usr/bin/pip
[root@nagios1 tmp]# grep 'pip install' nagioslogserver/fullinstall | sed 's/pip install/& --no-index --find-links \/tmp\/pipfiles\//' | source /dev/stdin
grep: nagioslogserver/fullinstall: No such file or directory
[root@nagios1 tmp]# ls
ks-script-Mc_MML systemd-private-a5508ffa850b48959724bdba39cbe4f2-chronyd.service-tKKY2m vmware-root_20474-592566762
nagioslogserver-latest.tar.gz vmware-root_1500-2965906758 wkhtmltox-0.12.1.3.el7.x86_64.rpm
ncpa-2.2.1.el7.x86_64.rpm vmware-root_1507-4282367673 yum.log
pipfiles vmware-root_1538-834774654
[root@nagios1 tmp]# tar -xzf nagioslogserver-latest.tar.gz
[root@nagios1 tmp]# ls
ks-script-Mc_MML pipfiles vmware-root_1538-834774654
nagioslogserver systemd-private-a5508ffa850b48959724bdba39cbe4f2-chronyd.service-tKKY2m vmware-root_20474-592566762
nagioslogserver-latest.tar.gz vmware-root_1500-2965906758 wkhtmltox-0.12.1.3.el7.x86_64.rpm
ncpa-2.2.1.el7.x86_64.rpm vmware-root_1507-4282367673 yum.log
[root@nagios1 tmp]# grep 'pip install' nagioslogserver/fullinstall | sed 's/pip install/& --no-index --find-links \/tmp\/pipfiles\//' | source /dev/stdin
[root@nagios1 tmp]# ll /tmp/pipfiles/
total 336
-rw-r--r--. 1 root root 23000 Apr 14 15:28 argparse-1.4.0-py2.py3-none-any.whl
-rw-r--r--. 1 root root 82818 Apr 14 15:28 click-7.1.1-py2.py3-none-any.whl
-rw-r--r--. 1 root root 58336 Apr 14 15:28 elasticsearch-2.0.0-py2.py3-none-any.whl
-rw-r--r--. 1 root root 43521 Apr 14 15:28 elasticsearch_curator-3.4.0-py2.py3-none-any.whl
-rw-r--r--. 1 root root 125642 Apr 14 15:28 urllib3-1.25.8-py2.py3-none-any.whl
[root@nagios1 tmp]# grep 'pip install' nagioslogserver/fullinstall | sed 's/pip install/& --no-index --find-links \/tmp\/pipfiles\//' | source /dev/stdin
[root@nagios1 tmp]#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios LogServer Offline issue

Post by ssax »

Please run these commands on the offline server:

Code: Select all

cd /tmp
grep '\$pipbin install' nagioslogserver/fullinstall | sed 's/\$pipbin install/pip install --no-index --find-links \/tmp\/pipfiles\//' | source /dev/stdin
Then continue with the KB.
scott.brown8
Posts: 13
Joined: Thu Jan 23, 2020 4:16 pm

Re: Nagios LogServer Offline issue

Post by scott.brown8 »

Is the link I'm using the wrong one for this?

On the Offline Server, getting this now..


Nagios Log Server Installation
==============================
DATE: Thu Apr 16 12:27:22 EDT 2020

DISTRO INFO:
RedHatEnterpriseServer
7.8
x86_64

Running 'setup_local_syslog'...
setup_local_syslog step already completed - skipping
Running 'prereqs'...
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Package ipa-gothic-fonts-003.03-5.el7.noarch already installed and latest version
Package ipa-mincho-fonts-003.03-5.el7.noarch already installed and latest version
Package ipa-pgothic-fonts-003.03-5.el7.noarch already installed and latest version
Package ipa-pmincho-fonts-003.03-5.el7.noarch already installed and latest version
Package pyOpenSSL-0.13.1-4.el7.x86_64 already installed and latest version
Package python-2.7.5-88.el7.x86_64 already installed and latest version
Package ntp-4.2.6p5-29.el7.x86_64 already installed and latest version
Package byacc-1.9.20130304-3.el7.x86_64 already installed and latest version
Package cairo-devel-1.15.12-4.el7.x86_64 already installed and latest version
Package gcc-4.8.5-39.el7.x86_64 already installed and latest version
Package glib2-devel-2.56.1-5.el7.x86_64 already installed and latest version
Package glibc-2.17-307.el7.1.x86_64 already installed and latest version
Package 1:java-1.8.0-openjdk-1.8.0.242.b08-1.el7.x86_64 already installed and latest version
Package libxml2-devel-2.9.1-6.el7.4.x86_64 already installed and latest version
Package 1:make-3.82-24.el7.x86_64 already installed and latest version
Package 1:net-snmp-5.7.2-47.el7.x86_64 already installed and latest version
Package 1:net-snmp-utils-5.7.2-47.el7.x86_64 already installed and latest version
Package 1:openssl-1.0.2k-19.el7.x86_64 already installed and latest version
Package patch-2.7.1-12.el7_7.x86_64 already installed and latest version
Package pango-devel-1.42.4-4.el7_7.x86_64 already installed and latest version
Package perl-ExtUtils-MakeMaker-6.68-3.el7.noarch already installed and latest version
Package sendmail-8.14.7-6.el7.x86_64 already installed and latest version
Package httpd-2.4.6-93.el7.x86_64 already installed and latest version
Package php-5.4.16-48.el7.x86_64 already installed and latest version
Package php-cli-5.4.16-48.el7.x86_64 already installed and latest version
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Package sudo-1.8.23-9.el7.x86_64 already installed and latest version
Package sysstat-10.1.5-19.el7.x86_64 already installed and latest version
Package unzip-6.0-21.el7.x86_64 already installed and latest version
Package zip-3.0-11.el7.x86_64 already installed and latest version
Package net-tools-2.0-0.25.20131004git.el7.x86_64 already installed and latest version
Package php-ldap-5.4.16-48.el7.x86_64 already installed and latest version
No package php-devel available.
Nothing to do
Skipping NTP step
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362290>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362410>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362590>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362710>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362890>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/argparse/
Requirement already up-to-date: argparse in /usr/lib/python2.7/site-packages
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362890>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch-curator/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca193624d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch-curator/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362a90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch-curator/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362490>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch-curator/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362910>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch-curator/
Requirement already up-to-date: elasticsearch-curator==3.4.0 in /usr/lib/python2.7/site-packages
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362a50>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362a90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362d50>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362f10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e0d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/elasticsearch/
Requirement already up-to-date: elasticsearch<2.1.0,>=1.8.0 in /usr/lib/python2.7/site-packages (from elasticsearch-curator==3.4.0)
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca19362c10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/click/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e0d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/click/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e250>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/click/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e3d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/click/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e550>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/click/
Requirement already up-to-date: click>=3.3 in /usr/lib/python2.7/site-packages (from elasticsearch-curator==3.4.0)
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca193622d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/urllib3/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e1d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/urllib3/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e3d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/urllib3/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e710>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/urllib3/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSCo
nnection object at 0x7fca1937e450>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/urllib3/
Requirement already up-to-date: urllib3<2.0,>=1.8 in /usr/lib/python2.7/site-packages (from elasticsearch<2.1.0,>=1.8.0->elasticsearch-curator==3.4.0)
ERROR: Prerequisites failed to install.

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Enterprises technical support.

The step that failed was: 'prereqs'
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios LogServer Offline issue

Post by ssax »

No, you're not using the wrong one, it doesn't look like you have access to the repositories though:

Code: Select all

No package php-devel available.
What did this output?

Code: Select all

cd /tmp
grep '\$pipbin install' nagioslogserver/fullinstall | sed 's/\$pipbin install/pip install --no-index --find-links \/tmp\/pipfiles\//' | source /dev/stdin
scott.brown8
Posts: 13
Joined: Thu Jan 23, 2020 4:16 pm

Re: Nagios LogServer Offline issue

Post by scott.brown8 »

that line seemed to have worked.. this is what I get now

[root@nagiosoffline nagioslogserver]# cd /tmp
[root@nagiosoffline tmp]# grep '\$pipbin install' nagioslogserver/fullinstall | sed 's/\$pipbin install/pip install --no-index --find-links \/tmp\/pipfiles\//' | source /dev/stdin
Ignoring indexes: https://pypi.python.org/simple
Requirement already up-to-date: argparse in /usr/lib/python2.7/site-packages
Requirement already up-to-date: elasticsearch-curator==3.4.0 in /usr/lib/python2.7/site-packages
Requirement already up-to-date: elasticsearch<2.1.0,>=1.8.0 in /usr/lib/python2.7/site-packages (from elasticsearch-curator==3.4.0)
Requirement already up-to-date: click>=3.3 in /usr/lib/python2.7/site-packages (from elasticsearch-curator==3.4.0)
Requirement already up-to-date: urllib3<2.0,>=1.8 in /usr/lib/python2.7/site-packages (from elasticsearch<2.1.0,>=1.8.0->elasticsearch-curator==3.4.0)


I'll look to see what repo php is in, but we have the Base and EPEL like mentioned as prereq. DId we need optional on the offline as well?
scott.brown8
Posts: 13
Joined: Thu Jan 23, 2020 4:16 pm

Re: Nagios LogServer Offline issue

Post by scott.brown8 »

can you list all the packages, dependencies etc needed? I'm not sure if we have room to put the entire 'optional' repo in that area. but we could easily just bring in php-devel and others it needs.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios LogServer Offline issue

Post by ssax »

No package php-devel available.
That one is from updates repo on my system.

I do not have a list of them with all the required dependencies.

In the KB article at the top it says it under the Requirements section that you need access to them:

Code: Select all

        Operating System Repositories
        EPEL Repository [ CentOS | RHEL | Oracle Linux ]
I think you only need these from epel:

Code: Select all

rc
python-pip
scott.brown8
Posts: 13
Joined: Thu Jan 23, 2020 4:16 pm

Re: Nagios LogServer Offline issue

Post by scott.brown8 »

Where do I get the gpg keys for wkhtmltox and ncpa? I see they are on your assets site, but I dont see the specific key.

Also, what OS/version does your LogServer OVA run?
Locked