Database connection error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Database connection error

Post by eddiez »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Database connection error

Post by lmiltchev »

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?

Code: Select all

tail /var/log/mysqld.log
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?

Code: Select all

service postgresql restart
service postgresql status
Did you run out of disk space? What is the output of the following commands?

Code: Select all

df -h
df -i
Be sure to check out our Knowledgebase for helpful articles and solutions!
eddiez
Posts: 72
Joined: Tue Dec 11, 2012 10:38 am

Re: Database connection error

Post by eddiez »

Issue resolved, thanks.
Locked