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.
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.
You do not have the required permissions to view the files attached to this post.
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.
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?
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.