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
If I disable nagios-8.repo, nothing is done:
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?[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!
Thank you for your support.
Best regards