RESOLVED: Upgrade NagiosXI to a specific version

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
igae1
Posts: 57
Joined: Thu May 25, 2017 6:35 am

RESOLVED: Upgrade NagiosXI to a specific version

Post by igae1 »

Hello Nagios Support Team,

I am currently running Nagios XI version 5.8.9 on RHEL8, and I need to upgrade to version 5.11.3.

To perform the upgrade, I downloaded the package from:
https://assets.nagios.com/downloads/nag ... 1.3.tar.gz

I followed the upgrade instructions provided in:
https://assets.nagios.com/downloads/nag ... I-2024.pdf

However, when I execute ./upgrade, Nagios XI is upgraded to the latest available version instead of version 5.11.3.

Upon reviewing the script at /tmp/nagiosxi/upgrade, I found that starting from line 162, the following code executes:

Code: Select all

if [ "$distro" != "Ubuntu" ] && [ "$distro" != "Debian" ]; then

        # Fix yum update for el8
        if [ "$dist" == "el8" ]; then
                if [ -f /etc/yum.repos.d/redhat.repo ]; then
            sed -i "/gpgkey.*=.*/a exclude=net-snmp*" /etc/yum.repos.d/*redhat.repo*
        fi
        fi

    if rpm -q nagiosxi >/dev/null; then
        echo "RPM Install detected, switching to yum update"
        if [ "$INTERACTIVE" = "True" ]; then
            yum update nagiosxi
            exit $?
        else
            yum update nagiosxi -y
            exit $?
        fi
    fi
fi
Since I have the nagios8 repository enabled, this causes yum update nagiosxi to upgrade Nagios XI to the latest available version instead of the specific version I downloaded (5.10.0).

If I disable nagios-8.repo, nothing is done:
[root@milosm00 nagiosxi]# ./upgrade
RPM Install detected, switching to yum update
Actualización de repositorios de Subscription Management.
EPEL_8 REPO 45 kB/s | 2.3 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 75 kB/s | 4.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 102 kB/s | 4.5 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs) 99 kB/s | 3.8 kB 00:00
Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs) 91 kB/s | 3.8 kB 00:00
Dependencias resueltas.
Nada por hacer.
¡Listo!
Could you please provide guidance on how to upgrade Nagios XI from version 5.8.9 to version 5.11.3 without upgrading to the latest available version?

Thank you for your support.

Best regards
Last edited by igae1 on Tue Mar 25, 2025 8:56 am, edited 2 times in total.
User avatar
lgute
Posts: 420
Joined: Mon Apr 06, 2020 2:49 pm

Re: Upgrade NagiosXI to a specific version

Post by lgute »

Hi @igae1,

Thanks for reaching out.

It sounds like XI was originally installed using an RPM, instead of the source install. In order to install a particular version, you will need to get a list of the versions that are available.

Code: Select all

yum --showduplicates list nagiosxi
You should see something like this (except you will have the nagios-base repository instead of nagios-test).
RPMlist.png
The data has the following format

Code: Select all

<package_name>.<architecture>     <version_number>–<build_number>     <repository>
      nagiosxi.x86_64                   2024R1.3.2-1.el8              nagios-base
To upgrade XI, use the <package_name>-<version_number>, like this.

Code: Select all

yum update nagiosxi-2024R1.3.2
It is likely that the version you want will no longer be available via RPM. If you are determined to upgrade to 5.10, you will need to setup a new RHEL 8 VM/server, install the 5.8.9 source install, create a backup of your existing system and then restore it on the new server.

IMPORTANT: after the restore, edit the /usr/local/nagiosxi/var/xi-itype and change it from rpm to source

Then you could do source upgrades on the new server, to any version you want

Here is some documentation on the Backup and Restore process.
You do not have the required permissions to view the files attached to this post.
Please let us know if you have any other questions or concerns.

-Laura
igae1
Posts: 57
Joined: Thu May 25, 2017 6:35 am

Re: Upgrade NagiosXI to a specific version

Post by igae1 »

Hi,

Thanks for your reply.

That's unfortunate news, but I appreciate the clarification. Since our current installation was indeed done via RPM, we'll proceed with setting up a new RHEL 8 VM, reinstalling 5.11.3 from source, and restoring the backup as you recommended.

I do have a follow-up question:
Is it possible to install a version like 5.11.3 using the source installation method, or are certain versions only available through RPM?

Thanks again for your support.

Best regards,
User avatar
lgute
Posts: 420
Joined: Mon Apr 06, 2020 2:49 pm

Re: Upgrade NagiosXI to a specific version

Post by lgute »

Hi @igae1,

You will need to install the same version of XI on your new server, which I believe you listed as 5.8.9, in order to do the backup and restore process.

All versions of the source installs should be available here.
Please let us know if you have any other questions or concerns.

-Laura
igae1
Posts: 57
Joined: Thu May 25, 2017 6:35 am

Re: Upgrade NagiosXI to a specific version

Post by igae1 »

Hi, Laura,

Now I don't understand this solution.

If I need to create a new VM (server2) to upgrade nagios XI from 5.8.9 to 5.11.3, but I can only restore my configuration, from server1 to server2 if I have same version in both servers. How I suppose to upgrade server2 from 5.8.9 to 5.11.3? I will face the same problem.

Which ones are the correct steps, recommended by Nagios, to upgrade a Nagios XI server from 5.8.9 to 5.11.3?

My best regards.
gwesterman
Posts: 269
Joined: Wed Aug 23, 2023 11:29 am

Re: Upgrade NagiosXI to a specific version

Post by gwesterman »

Hi @igae1,

In order to upgrade to 5.11.3, you first need to install your current version from source and migrate (backup and restore). Once you have migrated, you are free to upgrade to any version you want. The migration process must be done between two servers with the same version. Here are instructions on migrating and here are all previous source installs.
igae1
Posts: 57
Joined: Thu May 25, 2017 6:35 am

Re: Upgrade NagiosXI to a specific version

Post by igae1 »

Hi!

Maybe there was a misunderstanding on our side. Our installation is actually shown as source install, not an RPM one.

Code: Select all

[root@milosm00 tmp]# cat /usr/local/nagiosxi/var/xi-itype
source
This is a brand new server, running on RHEL8, and I installed Nagios XI from tarball using the procedure described here:
https://repo.nagios.com/?repo=offline#install

I downloaded Nagios XI 5.8.9 from the following URL:
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz

Could the issue be that I used the nagiosxi-offline version of the installation package?

Also, is it possible that /usr/local/nagiosxi/var/xi-itype shows source because we restored a backup from our old server, which "maybe" was originally installed from source?


EDIT:

I've found the problem. I've tried to update an offline installed nagios xi with a source package.
https://assets.nagios.com/downloads/nag ... 1.3.tar.gz

Instead, I've downloaded this other offline package, and it worked fine.
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz


Sorry about this missunderstanding, and thank you for your support.
User avatar
lgute
Posts: 420
Joined: Mon Apr 06, 2020 2:49 pm

Re: Upgrade NagiosXI to a specific version

Post by lgute »

Hi @igae1,

I am glad you got everything straightened out. I am going to close this thread and mark it resolved.

Thanks for the update!
Please let us know if you have any other questions or concerns.

-Laura
Locked