Page 1 of 1

Migration from RHEL7 to RHEL9 - DNF no longer finds nagiosxi

Posted: Wed Dec 04, 2024 12:02 pm
by Basher
Built a new server running RHEL 9 and installed nagiosxi-2024R1.1.5 using the Nagios repos to match the original system. Backed up original system (installed from source), restored to new without any issue. Ran "restore_repair.sh" (probably a bad move).

Everything works fine, except I can no longer update Nagios XI. I have a feeling the restore_repair borked this.

Code: Select all

[root@nagserver ~]# rpm -qa | grep nagiosxi
nagiosxi-nagvis-2024R1.1.5-1.el9.x86_64
nagiosxi-mrtg-2024R1.1.5-1.el9.x86_64
nagiosxi-nagioscore-2024R1.1.5-1.el9.x86_64
nagiosxi-ndoutils-2024R1.1.5-1.el9.x86_64
nagiosxi-nxti-2024R1.1.5-1.el9.x86_64
nagiosxi-wmic-2024R1.1.5-1.el9.x86_64
nagiosxi-shellinabox-2024R1.1.5-1.el9.x86_64
nagiosxi-pnp-2024R1.1.5-1.el9.x86_64
nagiosxi-phantomjs-2024R1.1.5-1.el9.x86_64
nagiosxi-nsca-2024R1.1.5-1.el9.x86_64
nagiosxi-nrpe-2024R1.1.5-1.el9.x86_64
nagiosxi-nrds-2024R1.1.5-1.el9.x86_64
nagiosxi-nagiosplugins-2024R1.1.5-1.el9.x86_64
nagiosxi-2024R1.1.5-1.el9.x86_64

[root@nagserver ~]# dnf list installed | grep nagiosxi

[root@nagserver ~]# dnf clean all
Updating Subscription Management repositories.
54 files removed

[root@nagserver ~]# dnf repolist
Updating Subscription Management repositories.
repo id                                                                   repo name
codeready-builder-for-rhel-9-x86_64-rpms                                  Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)
epel                                                                      Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264                                                       Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
nagios-base                                                               Nagios
nagiosxi-deps                                                             Nagios XI Dependencies
rhel-9-for-x86_64-appstream-rpms                                          Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms                                             Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)

[root@nagserver ~]# dnf search nagiosxi
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux 9 - x86_64                                                                                                   14 MB/s |  23 MB     00:01
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64                                                                            3.5 kB/s | 2.5 kB     00:00
Nagios                                                                                                                                          635 kB/s | 279 kB     00:00
Nagios XI Dependencies                                                                                                                          5.2 kB/s | 1.5 kB     00:00
Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)                                                                                         15 MB/s |  10 MB     00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                         42 MB/s |  46 MB     00:01
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                            47 MB/s |  38 MB     00:00
No matches found.
I removed and installed the repo from here, but no dice:

https://repo.nagios.com/nagios/9/nagios ... noarch.rpm

I also tried the RPM offline installer and it cannot find the RPM packages, even if I point directly at them. The source code installer says it's an RPM install and bails.

Re: Migration from RHEL7 to RHEL9 - DNF no longer finds nagiosxi

Posted: Wed Dec 04, 2024 12:09 pm
by Basher
Why is it that you find the solution as soon as you pose the question?

Anyway, I found I had excluded the nagiosxi packages in /etc/dnf/dnf.conf after I had prepped it so our automation system wouldn't update the package on me.

In /etc/dnf/dnf.conf:

Code: Select all

exclude = nagiosxi*
I found it by looking at dnf's config with:

Code: Select all

dnf config-manager --dump