Dependency problems when installing xi 5.7.5 on RHEL 7.9

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by mbeebe »

All,

I'm running into an issue trying to make a clean install of xi 5.7.5 on RHEL 7.9 where the installer kills the installation due to unresolved dependencies with net-snmp:

from install.log:
Error: Package: 1:net-snmp-perl-5.7.2-49.el7_9.1.x86_64 (rhel-7-server-optional-rpms)
Requires: net-snmp-libs = 1:5.7.2-49.el7_9.1
Available: 1:net-snmp-libs-5.7.2-18.el7.i686 (rhel-7-server-rpms)
net-snmp-libs = 1:5.7.2-18.el7

Here's what we have installed:
yum list installed | grep net-snmp
net-snmp.x86_64 1:5.7.2-49.el7 @rhel-7-server-rpms
net-snmp-agent-libs.x86_64 1:5.7.2-49.el7 @rhel-7-server-rpms
net-snmp-devel.x86_64 1:5.7.2-49.el7 @rhel-7-server-rpms
net-snmp-libs.x86_64 1:5.7.2-49.el7 @rhel-7-server-rpms

Here's the repos we have:
ls -la /etc/yum.repos.d/
total 32
drwxr-xr-x. 2 root root 88 Jan 21 14:09 .
drwxr-xr-x. 93 root root 8192 Jan 21 14:09 ..
-rw-r--r--. 1 root root 1050 Oct 31 13:33 epel.repo
-rw-r--r--. 1 root root 1149 Oct 31 13:33 epel-testing.repo
-rw-r--r--. 1 root root 309 Sep 16 2019 nagios-7.repo
-rw-r--r--. 1 root root 4494 Jan 21 13:45 redhat.repo

Trying to update one of the dependencies shows it's at the latest recognized by RHEL:
yum update net-snmp-libs
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink | 17 kB 00:00:00
epel | 4.7 kB 00:00:00
nagios-base | 1.5 kB 00:00:00
nagiosxi-deps | 1.5 kB 00:00:00
rhel-7-server-extras-rpms | 2.0 kB 00:00:00
rhel-7-server-optional-rpms | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-7-server-satellite-tools-6.7-rpms | 2.1 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
(1/2): epel/x86_64/updateinfo | 1.0 MB 00:00:01
(2/2): epel/x86_64/primary_db | 6.9 MB 00:00:02
No packages marked for update
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

The package is installed:
yum install net-snmp-libs
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
rhel-7-server-extras-rpms | 2.0 kB 00:00:00
rhel-7-server-optional-rpms | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-7-server-satellite-tools-6.7-rpms | 2.1 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
Package 1:net-snmp-libs-5.7.2-49.el7.x86_64 already installed and latest version
Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

I've tried the online and offline packages, and both fail with these dependencies not being met:
Requires: net-snmp = 1:5.7.2-49.el7_9.1
Requires: net-snmp-agent-libs = 1:5.7.2-49.el7_9.1
Requires: net-snmp-devel = 1:5.7.2-49.el7_9.1
Requires: net-snmp-libs = 1:5.7.2-49.el7_9.1

Can you please advise?

Thank you,

-- Mike Beebe
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by dchurch »

What are the outputs from the following commands:

Code: Select all

rpm -qa |grep 'nagios\|net-snmp' |sort

Code: Select all

yum info net-snmp-libs

Code: Select all

yum info nagiosxi
There's a similar issue when trying to install on Cent8, maybe you could glean a solution from that post.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by mbeebe »

dchurch wrote:What are the outputs from the following commands:

Code: Select all

rpm -qa |grep 'nagios\|net-snmp' |sort
nagios-repo-7-4.el7.noarch
net-snmp-5.7.2-49.el7.x86_64
net-snmp-agent-libs-5.7.2-49.el7.x86_64
net-snmp-devel-5.7.2-49.el7.x86_64
net-snmp-libs-5.7.2-49.el7.x86_64

Code: Select all

yum info net-snmp-libs
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Installed Packages
Name : net-snmp-libs
Arch : x86_64
Epoch : 1
Version : 5.7.2
Release : 49.el7
Size : 2.9 M
Repo : installed
From repo : rhel-7-server-rpms
Summary : The NET-SNMP runtime client libraries
URL : http://net-snmp.sourceforge.net/
License : BSD
Description : The net-snmp-libs package contains the runtime client libraries for shared
: binaries and applications.

Available Packages
Name : net-snmp-libs
Arch : i686
Epoch : 1
Version : 5.7.2
Release : 49.el7
Size : 740 k
Repo : rhel-7-server-rpms/7Server/x86_64
Summary : The NET-SNMP runtime client libraries
URL : http://net-snmp.sourceforge.net/
License : BSD
Description : The net-snmp-libs package contains the runtime client libraries for shared
: binaries and applications.

Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager


Code: Select all

yum info nagiosxi
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Available Packages
Name : nagiosxi
Arch : x86_64
Version : 5.7.5
Release : 1.el7
Size : 62 M
Repo : nagios-base
Summary : Nagios xi IT infrastructure monitoring solution
URL : http://www.nagios.com/
License : Nagios Software License
Description : Nagios xi is the most powerful IT infrastructure monitoring solution on the market. Nagios xi extends on proven, enterprise-class Open Source components to deliver
: the best monitoring solution for today's demanding organizational requirements. Designed for scalability and flexibility, xi is designed to make problematic IT
: monitoring tasks simple, while retaining the powerful attributes of its enterprise-class foundation blocks.

Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

There's a similar issue when trying to install on Cent8, maybe you could glean a solution from that post.
I'll check that out.

Thanks,

-- Mike
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by mbeebe »

Hello,

Unfortunately, the solution noted for Centos 8 did not work for us.

Please advise.

Thanks,

-- Mike
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by dchurch »

Your system apparently has both the x86_64 and the i686 architecture installed for some packages, and it's causing dependency issues to happen. This means at some point the system was explicitly told to install i686 packages.

i686 packages have no place on an x86_64 architecture machine (unless you're doing something with programs compiled for that 32-bit architecture, which Nagios xi does NOT do).

Perhaps an administrator explicitly installed 32-bit libraries?

What's the output for the following commands (as root)?

Code: Select all

rpm -qa |grep -P 'i\d86'
history |grep -P '(yum|rpm).*i\d86'
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by mbeebe »

dchurch wrote:Your system apparently has both the x86_64 and the i686 architecture installed for some packages, and it's causing dependency issues to happen. This means at some point the system was explicitly told to install i686 packages.

i686 packages have no place on an x86_64 architecture machine (unless you're doing something with programs compiled for that 32-bit architecture, which Nagios xi does NOT do).

Perhaps an administrator explicitly installed 32-bit libraries?

What's the output for the following commands (as root)?

Code: Select all

rpm -qa |grep -P 'i\d86'
history |grep -P '(yum|rpm).*i\d86'
There's no return; nothing.

-- Mike
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by mbeebe »

Hello,

Still having this issue:

>yum install nagiosxi

(...)
Found and removing 0 unneeded dependencies
Error: Package: nagiosxi-5.7.5-1.el7.x86_64 (nagios-base)
Requires: net-snmp-libs
Error: Package: php-snmp-5.4.16-48.el7.x86_64 (rhel-7-server-optional-rpms)
Requires: libnetsnmp.so.31()(64bit)
Error: Package: nagiosxi-5.7.5-1.el7.x86_64 (nagios-base)
Requires: net-snmp-perl
Error: Package: php-snmp-5.4.16-48.el7.x86_64 (rhel-7-server-optional-rpms)
Requires: net-snmp
Error: Package: nagiosxi-5.7.5-1.el7.x86_64 (nagios-base)
Requires: net-snmp
Error: Package: nagiosxi-5.7.5-1.el7.x86_64 (nagios-base)
Requires: net-snmp-utils
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

> yum repo-pkgs nagios-base list
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
Available Packages
gearmand.x86_64 1.1.19-1.el7 nagios-base
gearmand-debuginfo.x86_64 1.1.19-1.el7 nagios-base
gearmand-devel.x86_64 1.1.19-1.el7 nagios-base
gearmand-server.x86_64 1.1.19-1.el7 nagios-base
mod_gearman.x86_64 3.3.0-1.el7 nagios-base
mod_gearman-debuginfo.x86_64 3.3.0-1.el7 nagios-base
nagiosxi.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-ajaxterm.x86_64 5-4.13.el7 nagios-base
nagiosxi-mrtg.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-nagioscore.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-nagiosmobile.x86_64 5.6.14-1.el7 nagios-base
nagiosxi-nagiosplugins.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-nagiosql.x86_64 5-4.13.el7 nagios-base
nagiosxi-nagvis.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-ndoutils.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-nrds.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-nrpe.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-nsca.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-nxti.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-pnp.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-shellinabox.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-wkhtmltox.x86_64 5.7.5-1.el7 nagios-base
nagiosxi-wmic.x86_64 5.7.5-1.el7 nagios-base
ncpa.x86_64 2.2.2-1.el7 nagios-base
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

> yum repo-pkgs nagiosxi-deps list
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
Available Packages
fping.x86_64 3.10-4.el7 nagiosxi-deps
freetds.x86_64 0.95.81-1.el7 nagiosxi-deps
jwhois.x86_64 4.0-38.el7 nagiosxi-deps
libc-client.x86_64 2007f-16.el7 nagiosxi-deps
libidn2.x86_64 2.0.4-4.el7 nagiosxi-deps
libmcrypt.x86_64 2.5.8-13.el7 nagiosxi-deps
nmap.i386 2:6.47-2 nagiosxi-deps
nmap.x86_64 2:6.47-2 nagiosxi-deps
perl-Class-Accessor.noarch 0.34-12.el7 nagiosxi-deps
perl-Config-IniFiles.noarch 2.79-1.el7 nagiosxi-deps
perl-Crypt-Rijndael.x86_64 1.12-1.el7 nagiosxi-deps
perl-Mail-IMAPClient.noarch 3.37-1.el7 nagiosxi-deps
perl-Mail-POP3Client.noarch 2.19-5.el7 nagiosxi-deps
perl-Math-Calc-Units.noarch 1.07-9.el7 nagiosxi-deps
perl-Nagios-Monitoring-Plugin.noarch 0.51-1.el7 nagiosxi-deps
perl-Net-SMTP-TLS.noarch 0.12-1.of.el7 nagiosxi-deps
perl-Net-SNMP.noarch 6.0.1-7.el7 nagiosxi-deps
perl-Number-Format.noarch 1.73-14.el7 nagiosxi-deps
php-imap.x86_64 5.4.16-7.el7 nagiosxi-deps
php-mcrypt.x86_64 5.4.16-7.el7 nagiosxi-deps
php-mssql.x86_64 5.4.16-7.el7 nagiosxi-deps
php-pear-HTML-Template-IT.noarch 1.3.0-2.el5 nagiosxi-deps
php-pecl-ssh2.x86_64 0.12-1.el7 nagiosxi-deps
python-bson.x86_64 2.5.2-4.el7 nagiosxi-deps
python-pymongo.x86_64 2.5.2-4.el7 nagiosxi-deps
python-pymssql.x86_64 2.1.1-1.el7 nagiosxi-deps
python-simplejson.x86_64 3.3.3-1.el7 nagiosxi-deps
rrdtool.x86_64 1.4.9-1.el7 nagiosxi-deps
rrdtool-devel.x86_64 1.4.9-1.el7 nagiosxi-deps
rrdtool-perl.x86_64 1.4.9-1.el7 nagiosxi-deps
rrdtool-python.x86_64 1.4.9-1.el7 nagiosxi-deps
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

I'm not seeing net-snmp or any of its dependencies anywhere.

-- Mike
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by dchurch »

Please try running the following commands as root:

Code: Select all

yum remove -y net-snmp-devel
yum reinstall -y --skip-broken php-snmp net-snmp-libs
yum update
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
mbeebe
Posts: 144
Joined: Thu Dec 20, 2018 5:12 pm

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by mbeebe »

dchurch wrote:Please try running the following commands as root:

Code: Select all

yum remove -y net-snmp-devel
yum reinstall -y --skip-broken php-snmp net-snmp-libs
yum update
>yum remove -y net-snmp-devel

Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
No Match for argument: net-snmp-devel
No Packages marked for removal
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

>yum reinstall -y --skip-broken php-snmp net-snmp-libs

Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
No Match for argument: php-snmp
(...)
nagios-base 100/100
Package(s) php-snmp available, but not installed.
No Match for argument: net-snmp-libs
Error: Nothing to do
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

> yum update
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
rhel-7-server-ansible-2.9-rpms | 2.3 kB 00:00:00
rhel-7-server-extras-rpms | 2.0 kB 00:00:00
rhel-7-server-optional-rpms | 1.8 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-7-server-satellite-tools-6.7-rpms | 2.1 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
No packages marked for update
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager

>yum install nagiosxi
(same result as before)

-- Mike
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Dependency problems when installing xi 5.7.5 on RHEL 7.9

Post by dchurch »

mbeebe wrote:Repository nagios-base is listed more than once in the configuration
Repository nagiosxi-deps is listed more than once in the configuration
This is probably your problem. Please inspect the contents of /etc/yum.d and remove any duplicated package repos.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.