I am getting the following when trying to access my Nagios system.
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.
I ran the script listed and still get this message. At this point my production system is down.
Database connection error
Re: Database connection error
Sometimes one needs to run the database repair script a few times before ALL of the errors are fixed. Did you check the mysql log for errors (crashed tables) after you ran the script?
Do you still see some errors?
Also, it is possible that the problem is not related to mysql database but postgres. Can you restart postgres and check if it is running?
Did you run out of disk space? What is the output of the following commands?
Code: Select all
tail /var/log/mysqld.logAlso, it is possible that the problem is not related to mysql database but postgres. Can you restart postgres and check if it is running?
Code: Select all
service postgresql restart
service postgresql statusCode: Select all
df -h
df -iBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Database connection error
Issue resolved, thanks.