Corrupt SQL Database?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
djastv
Posts: 2
Joined: Wed Jul 01, 2015 9:36 pm

Corrupt SQL Database?

Post by djastv »

Hi,

I've recently installed Nagios XI, licensed it and configured it. However when I click on the host overview I just get an SQL database error. I've attached a screenshot of the issue I'm having.

The install of nagios details are:

CentOS 6
Bare metal install (Not running on VM)
Static IP
Time synced to local NTP server

If somebody can advise me on how to fix this I'd appreciate it.

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Corrupt SQL Database?

Post by lmiltchev »

Run the following command from the command line:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
then check the mysqld.log for errors (corrupt tables):

Code: Select all

tail /var/log/mysqld.log
Let me know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
djastv
Posts: 2
Joined: Wed Jul 01, 2015 9:36 pm

Re: Corrupt SQL Database?

Post by djastv »

Worked a treat!

Thanks a lot.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Corrupt SQL Database?

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked