Page 1 of 3

new Installation failed

Posted: Wed Mar 03, 2021 8:01 am
by scharft
Hi,

All pre-requisites are done but the installations fails, can you check the install.log please
repo.nagios.com/nagios/8/nagios-repo-8-1.el8.noarch.rpm
yum install epel-release -y
dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
codeready-builder-for-rhel-8-x86_64-rpms

Re: new Installation failed

Posted: Thu Mar 04, 2021 11:39 am
by jdunitz
There's a permissions error in the install log, which would normally happen when you try to install a package when you're not root.
However, our installer checks to make sure you're root before proceeding, so something else may be happening.

Can you post the output of:

id
ls -l /var/lib/rpm/.rpm.lock
sestatus

This is a freshly-installed RHEL8 machine, yes? No additional stuff installed, such as third-party security software that might block RPM or Yum installs?


Let us know what you find, and we'll go from there.

--Jeffrey

Re: new Installation failed

Posted: Thu Mar 04, 2021 11:40 am
by dchurch
In order to install Nagios XI, you will need to be logged in as root. You can do this by either SSH-ing in as root, or by running

Code: Select all

sudo -i
or

Code: Select all

su -
to become root.

Re: new Installation failed

Posted: Mon Mar 22, 2021 1:44 am
by scharft
[root@itrinag001 nagiosxi]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@itrinag001 nagiosxi]# ls -l /var/lib/rpm/ .rpm.lock
ls: cannot access '.rpm.lock': No such file or directory
/var/lib/rpm/:
total 149696
-rw-r--r--. 1 root root 5763072 Mar 3 13:18 Basenames
-rw-r--r--. 1 root root 16384 Mar 3 13:18 Conflictname
-rw-r--r--. 1 root root 286720 Mar 5 10:07 __db.001
-rw-r--r--. 1 root root 90112 Mar 5 10:07 __db.002
-rw-r--r--. 1 root root 1318912 Mar 5 10:07 __db.003
-rw-r--r--. 1 root root 1732608 Mar 3 13:18 Dirnames
-rw-r--r--. 1 root root 8192 Oct 8 13:39 Enhancename
-rw-r--r--. 1 root root 8192 Feb 26 10:36 Filetriggername
-rw-r--r--. 1 root root 28672 Mar 3 13:18 Group
-rw-r--r--. 1 root root 24576 Mar 3 13:18 Installtid
-rw-r--r--. 1 root root 86016 Mar 3 13:18 Name
-rw-r--r--. 1 root root 32768 Mar 3 13:18 Obsoletename
-rw-r--r--. 1 root root 139522048 Mar 3 13:18 Packages
-rw-r--r--. 1 root root 3387392 Mar 3 13:18 Providename
-rw-r--r--. 1 root root 16384 Feb 26 10:36 Recommendname
-rw-r--r--. 1 root root 708608 Mar 3 13:18 Requirename
-rw-r--r--. 1 root root 204800 Mar 3 13:18 Sha1header
-rw-r--r--. 1 root root 126976 Mar 3 13:18 Sigmd5
-rw-r--r--. 1 root root 8192 Feb 26 10:36 Suggestname
-rw-r--r--. 1 root root 8192 Feb 26 10:36 Supplementname
-rw-r--r--. 1 root root 8192 Feb 26 10:36 Transfiletriggername
-rw-r--r--. 1 root root 8192 Feb 26 10:36 Triggername
[root@itrinag001 nagiosxi]# sestatuts
bash: sestatuts: command not found...
[root@itrinag001 nagiosxi]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 32
[root@itrinag001 nagiosxi]# ./^C
[root@itrinag001 nagiosxi]#

Re: new Installation failed

Posted: Mon Mar 22, 2021 11:11 am
by dchurch
There's a space in the command you ran, i.e. "ls -l /var/lib/rpm/ .rpm.lock" instead of "ls -l /var/lib/rpm/.rpm.lock".

Can you run this command?

Code: Select all

ls -l /var/lib/rpm/.rpm.lock

Re: new Installation failed

Posted: Mon Apr 12, 2021 6:09 am
by scharft
[root@itrinag001 nagiosxi]# ls -l /var/lib/rpm/.rpm.lock
-rw-r--r--. 1 root root 0 Oct 8 2020 /var/lib/rpm/.rpm.lock

latest fullinstall failed:

Nagios XI Installation Log
==========================
DATE: Mon Apr 12 11:19:21 CEST 2021

DISTRO INFO:
RedHatEnterpriseServer
8.3
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.8.3
major=5
minor=8.3
releasedate=2021-03-31
release=5803

Configuring Repos...
Passed New Subscription Check
Repository 'codeready-builder-for-rhel-8-x86_64-rpms' is enabled for this system.
Updating Subscription Management repositories.
Last metadata expiration check: 0:28:14 ago on Mon 12 Apr 2021 10:52:01 AM CEST.
Package epel-release-8-10.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
epel-release RPM installed OK
Repo configured OK
Installing prerequisites...
Updating Subscription Management repositories.
Last metadata expiration check: 0:28:20 ago on Mon 12 Apr 2021 10:52:01 AM CEST.
Error:
Problem: problem with installed package nagiosxi-wmic-5.8.3-1.el8.x86_64
- package nagiosxi-wmic-5.8.3-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.7.5-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.7.5-2.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.8.1-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.8.2-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Updating Subscription Management repositories.
56 files removed
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux Modular 8 - 156 kB/s | 557 kB 00:03
Extra Packages for Enterprise Linux 8 - x86_64 266 kB/s | 9.2 MB 00:35
Nagios 42 kB/s | 226 kB 00:05
Nagios XI Dependencies 13 kB/s | 21 kB 00:01
Nagios XI Installation Log
==========================
DATE: Mon Apr 12 11:46:59 CEST 2021

DISTRO INFO:
RedHatEnterpriseServer
8.3
x86_64

THIS IS A NEW INSTALL!

INSTALLING:
full=5.8.3
major=5
minor=8.3
releasedate=2021-03-31
release=5803

Repos already configured - exiting.
Installing prerequisites...
Updating Subscription Management repositories.
Last metadata expiration check: 0:09:30 ago on Mon 12 Apr 2021 11:37:33 AM CEST.
Error:
Problem: problem with installed package nagiosxi-wmic-5.8.3-1.el8.x86_64
- package nagiosxi-wmic-5.8.3-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.7.5-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.7.5-2.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.8.1-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.8.2-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Updating Subscription Management repositories.
61 files removed
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux Modular 8 - 46 kB/s | 557 kB 00:11
Extra Packages for Enterprise Linux 8 - x86_64 762 kB/s | 9.2 MB 00:12
Nagios 97 kB/s | 226 kB 00:02
Nagios XI Dependencies 13 kB/s | 21 kB 00:01
Red Hat Enterprise Linux 8 for x86_64 - BaseOS 1.0 MB/s | 29 MB 00:28
Red Hat CodeReady Linux Builder for RHEL 8 x86_ 715 kB/s | 4.5 MB 00:06
Red Hat Enterprise Linux 8 for x86_64 - AppStre 896 kB/s | 27 MB 00:30
Error:
Problem: problem with installed package nagiosxi-wmic-5.8.3-1.el8.x86_64
- package nagiosxi-wmic-5.8.3-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.7.5-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.7.5-2.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.8.1-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- package nagiosxi-wmic-5.8.2-1.el8.x86_64 conflicts with nagiosxi-deps-el8 provided by nagiosxi-deps-el8-5.8.3-1.noarch
- conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@itrinag001 nagiosxi]# vi 1-prereqs
[root@itrinag001 nagiosxi]# rpm -qa|grep pymssql
[root@itrinag001 nagiosxi]# rpm -qa|grep wmic
nagiosxi-wmic-5.8.3-1.el8.x86_64

Re: new Installation failed

Posted: Mon Apr 12, 2021 4:40 pm
by vtrac
Hi,
The latest released is now "Nagios XI 5.8.3" and your system is "RedHatEnterpriseServer 8.3".

If your system is a VM and you can revert back to a clean VM from a snapshot, that would be great.
That way, we can start fresh since the last time you tried this was for "Nagios XI 5.8.1" and we want to install from a clean VM for this "5.8.3" release.

Please login as "root" to do these steps below.

Please make sure that "/tmp" do have "exec" permission for the installation to complete successfully.

To mount "exec" for "/tmp", please do:
(NOTE: do this if you have "/tmp" filesystem mounted. You can check if you have "/tmp" mount point by using the "df -k" command)

Code: Select all

mount -o remount,exec /tmp
Please run the below command to setup the yum repo for Nagios:

Code: Select all

rpm -Uvh https://repo.nagios.com/nagios/8/nagios-repo-8-1.el8.noarch.rpm
Pre-requisites for Nagios XI:
IF you are installing on RHEL 8 you will need to add the following:

Code: Select all

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
Now, please run the below three commands:

Code: Select all

yum clean all

yum repolist

yum update
Installation of Nagios XI
Install the Nagios XI package:

Code: Select all

yum install nagiosxi

Best Regards,
Vinh

Re: new Installation failed

Posted: Tue Apr 13, 2021 9:00 am
by scharft
Hi,

we did the troubleshooting steps RHEL 8.0 but the issue is the same.
Can we have a remote support session?

regards

Re: new Installation failed

Posted: Tue Apr 13, 2021 10:30 am
by vtrac
Hi,
Can you please start over with a "clean" VM? .... :-)

You can ask your IT (Unix Admin) to revert back to the original (fresh installed) VM.
The above step will only take about 5 minutes.

The reason I asked you to start over because during March, you installed version "5.8.1", now the latest released version is '5.8.3". So there are conflicts with your old package under "/tmp/nagiosxi" folder, which will cause the install to fail.

Once you have a clean VM, then follow the step below in this page:
https://repo.nagios.com/?repo=rpm-rhel

Here are the steps from the URL above you must perform:
1)- Installation of Nagios Repo

Code: Select all

rpm -Uvh https://repo.nagios.com/nagios/8/nagios-repo-8-1.el8.noarch.rpm

yum update
2)- Pre-requisites for Nagios XI

Code: Select all

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
3)- Installation of Nagios XI
I listed three choices, but I would pick the 1st or 2nd.
If 1st or 2nd failed, then I would try the 3rd steps.

Code: Select all

yum install nagiosxi

or

curl https://assets.nagios.com/downloads/nagiosxi/install.sh | sh

or

cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./fullinstall


Now, your installation is completed. You can now open Nagios XI webpage:
NOTE: "x.x.x.x" is the IP address of your Nagios XI VM.
http://x.x.x.x/nagiosxi/


KB for installing Nagios XI (manually):
https://assets.nagios.com/downloads/nag ... -Linux.pdf



Best Regards,
Vinh

Re: new Installation failed

Posted: Mon May 31, 2021 7:55 am
by scharft
We have installed and configured a new vm.
Were fine 1 week but after some days of idle many system components are red
Database Maintenance
Last Run 4248d 0h 24m 9s Ago
Command Subsystem
Last Run 4248d 0h 23m 39s Ago
Event Manager
Last Run 18778d 12h 54m 13s Ago
Feed Processor
Last Run 4248d 0h 23m 39s Ago
Report Engine
Last Run 4248d 0h 23m 40s Ago
Cleaner
Last Run 4248d 0h 24m 9s Ago
Nonstop Operations Manager
Last Run 4248d 0h 24m 9s Ago
System Statistics

When addding a new host, the process "waiting for configuration verification" never ends.