This weekend something happened to one of our NagiosXI servers. At first the webpage said we needed to re-install Nagios. I rebooted the server and now it gives the following message:
"Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, 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
Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, 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
SQL: SQL Error [nagiosxi] : Database connection failed SQL: SQL Error [nagiosxi] : Database connection failed SQL: SQL Error [nagiosxi] : Database connection failedMessage: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, 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 have run the repair_database.sh command twice now, but no change.
Thank you for your response. A co-worker figured it out. We had to vacuum the databases and recreate the log files. That server has been up for several years and no database maintenance has ever been done on it. We have now set up a yearly maintenance schedule to keep this from happening again.