Nagios XI Database crashed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rodrilea
Posts: 8
Joined: Fri Jun 23, 2017 4:31 pm

Nagios XI Database crashed

Post by rodrilea »

I have received the following message from our Nagios XI server:

Database "nagios" = {Table "nagios_statehistory" has a problem: "Table './nagios/nagios_statehistory' is marked as crashed and last (automatic?) repair failed"}

What do I need to do to fix this issue?

Rod Rilea
Rod Rilea
Network Systems Engineer
Wheaton College
[email protected]
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios XI Database crashed

Post by benjaminsmith »

Rod,

Welcome to the Nagios Support Forum. Let's get this worked out for you. The first step is to log into the terminal as root and run the following command:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
That normally will take care of the issue. If not, then try the following command.

Code: Select all

mysqlcheck -r -f -uroot -pnagiosxi --all-databases --use_frm
If the issue persists, please PM your system profile (if you can access the interface). Thanks.

To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rodrilea
Posts: 8
Joined: Fri Jun 23, 2017 4:31 pm

Re: Nagios XI Database crashed

Post by rodrilea »

I ran /usr/local/nagiosxi/scripts/repair_databases.sh nagios. This repaired the nagios database and resolved the problem.

Thank you for your help, you can close the ticket.
Rod Rilea
Network Systems Engineer
Wheaton College
[email protected]
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Database crashed

Post by scottwilkerson »

rodrilea wrote:I ran /usr/local/nagiosxi/scripts/repair_databases.sh nagios. This repaired the nagios database and resolved the problem.

Thank you for your help, you can close the ticket.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked