Database error - Nagios will not start successfully ..even with db repair
Posted: Fri Mar 29, 2024 8:15 am
Hello,
Running Nagios Core 4.4.13 on Redhat 8 VM
Ran an yum update recently to secure the system with latest patches. (8.6 to 8.9)
Nagios is now broken..page url won't come up
I went to grub and reverted to old kernel (8.6)...and now I get the Nagios XI page ..but when I click on "Access Nagios XI" button/link, I get database error (see attachment)
Database Error
A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh
I ran the repair about 3 times....but nothing changes.. I still get the database error.
Found out that nagios store the database sql backups in /store/backups/mysql
I ran a restore from a 3 weeks ago via
mysql -u root -pnagiosxi nagiosql < /var/tmp/mysql_week.11.2024-03-16_07h00m.sql
mysql -u root -pnagiosxi nagios < /var/tmp/mysql_week.11.2024-03-16_07h00m.sql
Unfortunately, that didn't help either..still get Database error screen and run the /usr/local/nagiosxi/scripts/repair_databases.sh
Does anyone have any ideas on how to restore my Nagios XI server? I can try sql restore using a file from more than a month ago, and see if that helps, but for some reason, I don't think it will.
Not sure what happened in the yum updates ...but at I still have kernel for RH8.6 and just need some assistance..
Thank you
Running Nagios Core 4.4.13 on Redhat 8 VM
Ran an yum update recently to secure the system with latest patches. (8.6 to 8.9)
Nagios is now broken..page url won't come up
I went to grub and reverted to old kernel (8.6)...and now I get the Nagios XI page ..but when I click on "Access Nagios XI" button/link, I get database error (see attachment)
Database Error
A database connection error has been detected, please follow the repair prompt below. If the issue persists, please contact Nagios support.
Run the following from the CLI as root to attempt to repair the DB:
/usr/local/nagiosxi/scripts/repair_databases.sh
I ran the repair about 3 times....but nothing changes.. I still get the database error.
Found out that nagios store the database sql backups in /store/backups/mysql
I ran a restore from a 3 weeks ago via
mysql -u root -pnagiosxi nagiosql < /var/tmp/mysql_week.11.2024-03-16_07h00m.sql
mysql -u root -pnagiosxi nagios < /var/tmp/mysql_week.11.2024-03-16_07h00m.sql
Unfortunately, that didn't help either..still get Database error screen and run the /usr/local/nagiosxi/scripts/repair_databases.sh
Does anyone have any ideas on how to restore my Nagios XI server? I can try sql restore using a file from more than a month ago, and see if that helps, but for some reason, I don't think it will.
Not sure what happened in the yum updates ...but at I still have kernel for RH8.6 and just need some assistance..
Thank you