Page 1 of 1

NagiosXI upgrade is not happening from 2024R1.1.5 to 2024R1.2.1

Posted: Wed Sep 11, 2024 6:20 am
by pavan509
Hello Team,

I tried to upgrade the NagiosXI from 2024R1.1.5 to 2024R1.2.1. During this activity, I didn't see the upgrade happened as the version number on the application seems to be unchanged. There is no mariadb and we have only mysql. Not sure why it is looking up for the mariadb during the upgrade.

Code: Select all

 ./upgrade
Last metadata expiration check: 1:02:17 ago on Wed 11 Sep 2024 12:03:25 PM CEST.
Package nagiosxi-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-mrtg-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-nagioscore-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-nagiosplugins-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-nagvis-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-ndoutils-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-nrds-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-nrpe-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-nsca-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-nxti-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-phantomjs-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-pnp-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-shellinabox-2024R1.2.1-1.el9.x86_64 is already installed.
Package nagiosxi-wmic-2024R1.2.1-1.el9.x86_64 is already installed.
Dependencies resolved.

Code: Select all

cat xi-upgrade.log
Archive:  sourceguardian/ixed4.lin.x86-64.zip
  inflating: /usr/lib64/php/modules/ixed.8.0.lin
Sourceguardian extension found for PHP version 8.0
Removing backup loader...
Sourceguardian extension already in php.ini
Redirecting to /bin/systemctl restart httpd.service
Checking required prereqs...
Please wait...

PHP Warning:  Undefined array key "disable_verifypeer" in /tmp/nagiosxi/nagiosxi/basedir/html/includes/utilsx.inc.php on line 157
Adding ModSecurity Rules...
Restarting httpd with ModSecurity applied...
Failed to restart mariadb.service: Unit mariadb.service not found.

Re: NagiosXI upgrade is not happening from 2024R1.1.5 to 2024R1.2.1

Posted: Wed Sep 11, 2024 9:52 am
by lgute
Hi @pavan509, thanks for reaching out.

What distro and version are you using to run XI?

Re: NagiosXI upgrade is not happening from 2024R1.1.5 to 2024R1.2.1

Posted: Wed Sep 11, 2024 10:10 am
by pavan509
We are using the RHEL 9.4 OS

Re: NagiosXI upgrade is not happening from 2024R1.1.5 to 2024R1.2.1

Posted: Wed Sep 11, 2024 4:23 pm
by sgardil
I did a fresh install from 1.1.5 to 1.2.1 and it went through. Has this system been migrated from a different OS at some point? It seems there's an issue with your MySQL DB if it is searching for mariadb on a Rhel system. It may be easier to get the help you need from opening a ticket here if you have access to.

Re: NagiosXI upgrade is not happening from 2024R1.1.5 to 2024R1.2.1

Posted: Tue Sep 17, 2024 12:39 pm
by pavan509
We have got a new server with RHEL 9 OS and then migrated the data from old RHEL 7 OS and done a couple of the upgrades in the last few months. Somehow, the installation method got changed to RPM based installation during the migration process. So, I am able to do only the RPM upgrade but not the direct upgrade.

Is there a way to change the Nagios from RPM to normal installation on the same server?

Re: NagiosXI upgrade is not happening from 2024R1.1.5 to 2024R1.2.1

Posted: Wed Sep 25, 2024 3:42 am
by pavan509
To keep this thread further updated. I have raised a support case and during the investigation it is found that the config files has entries the database referring to mariadb instead of mysqld. Post modifying the config files, upgrade was successful.

Thanks everyone for their support.

Re: NagiosXI upgrade is not happening from 2024R1.1.5 to 2024R1.2.1

Posted: Wed Sep 25, 2024 9:41 am
by DoubleDoubleA
Awesome! Thanks for the update.