RHEL 8.2 nagios-plugins-all package conflict

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mjackson
Posts: 10
Joined: Mon Jun 04, 2018 3:39 pm

RHEL 8.2 nagios-plugins-all package conflict

Post by mjackson »

Hello Nagios Team,

When running 'yum update' on RHEL 8.2, I am receiving the following package conflict error.

Code: Select all

Error:
 Problem: cannot install both nagios-plugins-2.3.3-3.el8.x86_64 and nagios-plugins-2.3.3-4.el8.x86_64
  - cannot install the best update candidate for package nagios-plugins-ssl_validity-2.3.3-4.el8.x86_64
  - cannot install the best update candidate for package nagios-plugins-2.3.3-4.el8.x86_64
(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)
We install the nagios plugins, using the nagios-plugins-all package, provided via the RHEL 8 EPEL repository. If I remove nagios-plugins-all, using 'yum remove nagios-plugins-all', and then reinstall, using 'yum install nagios-plugins-all,' the installation completes successfully. However, if I run 'yum update' afterwards, I receive the same error again.

I have used both 'subscription manager refresh', and 'yum clean all', to make sure the packages are fresh. I have also tried disabling the other repositories, and validated this same behavior on two separate RHEL 8 boxes.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by ssax »

What is the full output of these commands?

Code: Select all

yum repolist
yum info nagios-plugins
rpm -qa | grep nagios
You may need to add --allowerasing to get it to go through but I want to check some things first.
mjackson
Posts: 10
Joined: Mon Jun 04, 2018 3:39 pm

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by mjackson »

Here is the output of the requested commands. Please be aware the EPEL repository, points at an EPEL mirror, managed by Satellite in our environment. The packages were refreshed last Monday, and are scheduled to refresh every week.

Code: Select all

[root@mjackson-rhl8 ~]# yum repolist
Updating Subscription Management repositories.
repo id                                                                                          repo name
EPEL_for_RHEL_8                                                                                  EPEL for RHEL 8
codeready-builder-for-rhel-8-x86_64-rpms                                                         Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
rhel-8-for-x86_64-appstream-rpms                                                                 Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms                                                                    Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
rhel-8-for-x86_64-supplementary-rpms                                                             Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)
satellite-tools-6.5-for-rhel-8-x86_64-rpms                                                       Red Hat Satellite Tools 6.5 for RHEL 8 x86_64 (RPMs)

[root@mjackson-rhl8 ~]# yum info nagios-plugins
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                                                                                            38 kB/s | 2.8 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                               36 kB/s | 2.4 kB     00:00
EPEL for RHEL 8                                                                                                                                                                     48 kB/s | 3.1 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                            41 kB/s | 2.8 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)                                                                                                                        31 kB/s | 2.1 kB     00:00
Red Hat Satellite Tools 6.5 for RHEL 8 x86_64 (RPMs)                                                                                                                                31 kB/s | 2.1 kB     00:00
Installed Packages
Name         : nagios-plugins
Version      : 2.3.3
Release      : 4.el8
Architecture : x86_64
Size         : 289 k
Source       : nagios-plugins-2.3.3-4.el8.src.rpm
Repository   : @System
From repo    : EPEL_for_RHEL_8
Summary      : Host/service/network monitoring program plugins for Nagios
URL          : https://www.nagios-plugins.org/
License      : GPLv2+
Description  : Nagios is a program that will monitor hosts and services on your
             : network, and to email or page you when a problem arises or is
             : resolved. Nagios runs on a Unix server as a background or daemon
             : process, intermittently running checks on various services that you
             : specify. The actual service checks are performed by separate "plugin"
             : programs which return the status of the checks to Nagios. This package
             : contains those plugins.

[root@mjackson-rhl8 ~]# rpm -qa | grep nagios
nagios-plugins-ircd-2.3.3-4.el8.x86_64
nagios-plugins-cluster-2.3.3-4.el8.x86_64
nagios-plugins-tcp-2.3.3-4.el8.x86_64
nagios-plugins-sensors-2.3.3-4.el8.x86_64
nagios-plugins-mailq-2.3.3-4.el8.x86_64
nagios-plugins-by_ssh-2.3.3-4.el8.x86_64
nagios-plugins-dig-2.3.3-4.el8.x86_64
nagios-plugins-fping-2.3.3-4.el8.x86_64
nagios-plugins-all-2.3.3-4.el8.x86_64
nagios-plugins-icmp-2.3.3-4.el8.x86_64
nagios-plugins-dns-2.3.3-4.el8.x86_64
nagios-plugins-rpc-2.3.3-4.el8.x86_64
nagios-plugins-oracle-2.3.3-4.el8.x86_64
nagios-plugins-overcr-2.3.3-4.el8.x86_64
nagios-plugins-mrtgtraf-2.3.3-4.el8.x86_64
nagios-plugins-dhcp-2.3.3-4.el8.x86_64
nagios-plugins-snmp-2.3.3-4.el8.x86_64
nagios-common-4.4.5-1.el8.x86_64
nagios-plugins-disk-2.3.3-4.el8.x86_64
nagios-plugins-procs-2.3.3-4.el8.x86_64
nagios-plugins-real-2.3.3-4.el8.x86_64
nagios-plugins-time-2.3.3-4.el8.x86_64
nagios-plugins-disk_smb-2.3.3-4.el8.x86_64
nagios-plugins-flexlm-2.3.3-4.el8.x86_64
nagios-plugins-mrtg-2.3.3-4.el8.x86_64
nagios-plugins-nwstat-2.3.3-4.el8.x86_64
nagios-plugins-swap-2.3.3-4.el8.x86_64
nagios-plugins-ups-2.3.3-4.el8.x86_64
nagios-plugins-ssl_validity-2.3.3-4.el8.x86_64
nagios-plugins-perl-2.3.3-4.el8.x86_64
nagios-plugins-file_age-2.3.3-4.el8.x86_64
nagios-plugins-load-2.3.3-4.el8.x86_64
nagios-plugins-ntp-2.3.3-4.el8.x86_64
nagios-plugins-users-2.3.3-4.el8.x86_64
nagios-plugins-ping-2.3.3-4.el8.x86_64
nagios-plugins-mysql-2.3.3-4.el8.x86_64
nagios-plugins-wave-2.3.3-4.el8.x86_64
nagios-plugins-log-2.3.3-4.el8.x86_64
nagios-plugins-nagios-2.3.3-4.el8.x86_64
nagios-plugins-hpjd-2.3.3-4.el8.x86_64
nagios-plugins-http-2.3.3-4.el8.x86_64
nagios-plugins-ldap-2.3.3-4.el8.x86_64
nagios-plugins-ssh-2.3.3-4.el8.x86_64
nagios-plugins-2.3.3-4.el8.x86_64
nagios-plugins-smtp-2.3.3-4.el8.x86_64
nagios-plugins-ide_smart-2.3.3-4.el8.x86_64
nagios-plugins-pgsql-2.3.3-4.el8.x86_64
nagios-plugins-breeze-2.3.3-4.el8.x86_64
nagios-plugins-nt-2.3.3-4.el8.x86_64
nagios-plugins-dummy-2.3.3-4.el8.x86_64
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by ssax »

I am not sure what's wrong with your repos because it should not be seeing that old package.

You may want to check to make sure your local epel satellite doesn't have that nagios-plugins-2.3.3-3 package on there:

Try this one:

Code: Select all

yum clean all --enablerepo="*"
Or this:

Code: Select all

yum clean all --enablerepo="EPEL_for_RHEL_8"
Then try again.

If that doesn't work, try doing this:

Code: Select all

yum --disablerepo=* --enablerepo=EPEL_for_RHEL_8 update nagios-plugins
mjackson
Posts: 10
Joined: Mon Jun 04, 2018 3:39 pm

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by mjackson »

Hello,

I tried what you suggest, unfortunately I still receive the same error.

Code: Select all

 Problem: cannot install both nagios-plugins-2.3.3-3.el8.x86_64 and nagios-plugins-2.3.3-4.el8.x86_64
  - cannot install the best update candidate for package nagios-plugins-ssl_validity-2.3.3-4.el8.x86_64
  - cannot install the best update candidate for package nagios-plugins-2.3.3-4.el8.x86_64
Just to clarify the issue, to try and resolve this problem previously, I completely removed all the Nagios plugins. After removing the plugins, I reinstalled them, and the install completed successfully. The issue occurs afterward when I try to run yum update. Even though the package is up to date, I receive the error above. I have seen this same issue on two separate VM's now.

We do have have both the 2.3.3-3 packages and the 2.3.3-4 packages in our repository, as it is a complete mirror of the upstream EPEL repository. I am concerned that it may be an issue with how the nagios-plugins-all 2.3.3-4 package was built.

Do you have a RHEL 8 instance that it would be possible to validate the issue on? If not, I might try building a fresh REHL 8 instance, and connecting it directly to EPEL to check if the problem still occurs.
dfmco
Posts: 257
Joined: Wed Dec 04, 2013 11:05 am

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by dfmco »

I have the same issue on CentOS 8
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by ssax »

I'm unable to replicate this.

What is the full output from yum when you run it, I want to see what it shows further above.

I would try running this command and see what it shows:

Code: Select all

yum update --allowerasing
mjackson
Posts: 10
Joined: Mon Jun 04, 2018 3:39 pm

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by mjackson »

Hey,

I realized the 2.3.3 packages are not in the upstream EPEL. They are in our repository because Satellite can lock specific versions of content to different host groups (i.e. most of our clients are not using 2.3.4 currently).

I am installing a fresh copy of RHEL at the moment to see if the same problem occurs directly from EPEL.

This the output if I try using --allowerasing

Code: Select all

[root@mjackson-rhl8 ~]# yum update --allowerasing
Updating Subscription Management repositories.
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)                                                                                                                            39 kB/s | 2.8 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                                                                                               32 kB/s | 2.4 kB     00:00
EPEL for RHEL 8                                                                                                                                                                     50 kB/s | 3.1 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                            40 kB/s | 2.8 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)                                                                                                                        31 kB/s | 2.1 kB     00:00
Red Hat Satellite Tools 6.5 for RHEL 8 x86_64 (RPMs)                                                                                                                                31 kB/s | 2.1 kB     00:00
Error:
 Problem: cannot install the best update candidate for package nagios-plugins-2.3.3-4.el8.x86_64
  - cannot install both nagios-plugins-2.3.3-3.el8.x86_64 and nagios-plugins-2.3.3-4.el8.x86_64
  - problem with installed package nagios-plugins-ssl_validity-2.3.3-4.el8.x86_64
  - cannot install the best update candidate for package nagios-plugins-ssl_validity-2.3.3-4.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
mjackson
Posts: 10
Joined: Mon Jun 04, 2018 3:39 pm

Re: RHEL 8.2 nagios-plugins-all package conflict

Post by mjackson »

Hey,

We can probably close this discussion. I tested using a RHEL, 8.2 and RHEL 8.3, directly attached to EPEL. I was able to install the plugins without issues. The testing gave me a few leads on what might be causing the issue in regards to Satellite. Thanks for the help
Locked