Nagios LogServer Offline issue
Posted: Tue Apr 14, 2020 12:32 pm
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]#
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]#