NagiosXI Update Repeatedly Failing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
KWGagel
Posts: 30
Joined: Wed Jun 28, 2023 4:40 pm

NagiosXI Update Repeatedly Failing

Post by KWGagel »

The GUI update fails and recommends using manual. The manual upgrade fails too.
I have attached the upgrade.log
NagiosXI - Nagios XI 2026R1.1.1
Operating System: Oracle Linux Server 8.10
CPE OS Name: cpe:/o:oracle:linux:8:10:server
Kernel: Linux 5.4.17-2136.353.3.el8uek.x86_64
Architecture: x86-64

The ansible version is:
ansible --version
ansible [core 2.16.3]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.12/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.12 (main, Mar 12 2026, 07:23:47) [GCC 8.5.0 20210514 (Red Hat 8.5.0-28.0.1)] (/usr/bin/python3.12)
jinja version = 3.1.2
libyaml = True

Any help would be appreciated.
You do not have the required permissions to view the files attached to this post.
Kevin W. Gagel
Senior Technical Analyst
Canfor
KWGagel
Posts: 30
Joined: Wed Jun 28, 2023 4:40 pm

Re: NagiosXI Update Repeatedly Failing

Post by KWGagel »

I fed all of the information in the original post to Copilot AI and worked iteratively with it to resolve the issue. Here is a summary of the steps I had to take.

Here is a clean, consolidated **summary of the full sequence of steps you had to take** to successfully complete the NagiosXI upgrade on **Oracle Linux 8.10**.
This summary is based entirely on *your actions and my guidance throughout the conversation* (no outside sources required).

***

# ✅ **Summary: Steps Required to Successfully Upgrade NagiosXI on OL8**

Below is the exact sequence of fixes and workarounds you had to perform to overcome the multiple repository, dependency, and Python‑build issues that prevented the NagiosXI 2026R1.x upgrade from completing.

***

## **1. Identify root cause of the initial failure**

The upgrade failed because the EL8 dependency bundle shipped with NagiosXI required:

* `ansible` (obsolete, removed from OL8)
* `python39-winrm` (removed from OL8)
* while your system already had `ansible-core 2.16`, which conflicted with all legacy `ansible` versions.

This made the dependency RPM impossible to install normally.

***

## **2. Attempt normal dependency installation (failed)**

Running:

dnf install nagiosxi-deps-el8-2026r1.3-1.noarch.rpm

failed due to missing and conflicting dependencies.

***

## **3. Confirmed that you had both EL8 and EL9 dependency bundles**

Listing revealed:

nagiosxi-deps-el8-2026r1.3-1.noarch.rpm
nagiosxi-deps-el9-2026r1.3-1.noarch.rpm

— confirming the right RPM was present but broken for OL8.

***

## **4. Use workaround: Install dependency RPM with `--nodeps`**

Since the EL8 bundle was not installable through DNF, you bypassed dependency checking:

rpm -Uvh --nodeps nagiosxi-deps-el8-2026r1.3-1.noarch.rpm

This **successfully installed the dependency bundle** despite missing `ansible` and `python39-winrm`.

This was required for the upgrade script to continue.

***

## **5. Fix missing Python environment**

The upgrade script then failed because your system lacked pip:

/usr/bin/python: No module named pip

You resolved this by:

* Installing pip for Python 3.12
* Adding symlinks so NagiosXI’s installer could find them:

<!---->

ln -s /usr/bin/pip3.12 /usr/bin/pip
ln -s /usr/bin/python3.12 /usr/bin/python

This allowed the Python‑based portions of the installer to proceed.

***

## **6. Fix failure compiling the Python rrdtool module**

The installer attempted to run:

pip install rrdtool

This failed twice — first due to missing RRDtool headers (`rrd.h`), then due to missing Python headers (`Python.h`).

You fixed both problems by installing:

### Required packages:

dnf install rrdtool rrdtool-devel
dnf install python3.12-devel

This provided:

* `rrd.h` → required for RRD Python module
* `Python.h` → required for compiling CPython extensions

Once both header packages were present, pip was finally able to build the `rrdtool` Python wheel.

***

## **7. Re-run the upgrade script**

After all fixes were applied, running:

./upgrade

allowed the upgrade to continue successfully through:

* dependency checks
* PHP module checks
* Python module builds
* RRD tool compilation
* XI component updates

And the upgrade completed.

***

# 🎉 **Final Result**

You successfully upgraded Nagios XI on Oracle Linux 8 by completing a multi‑step remediation process involving:

* bypassing broken RPM dependencies
* fixing missing system Python tooling
* installing development headers for Python and RRDtool
* ensuring pip and python were available to the installer
* resolving all compile‑time failures for required Python modules

This chain of fixes fully restored the expected environment for NagiosXI’s upgrade script.

***
Kevin W. Gagel
Senior Technical Analyst
Canfor
Post Reply