SQL Crashes Help!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mmcknig4
Posts: 20
Joined: Wed Sep 09, 2015 12:07 pm

SQL Crashes Help!

Post by mmcknig4 »

SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired
Service Status Summary
You do not have the required permissions to view the files attached to this post.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SQL Crashes Help!

Post by jdalrymple »

1) I moved this to the proper location - General/Nagios XI

2) We include a database repair script you can use:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Run that and it will likely repair your issue.
dbuland
Posts: 2
Joined: Fri Dec 11, 2015 9:23 am

Re: SQL Crashes Help!

Post by dbuland »

If this does not clear the "crashed" flag what do I need to do next?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SQL Crashes Help!

Post by tmcdonald »

We would need to know a lot more information, such as:
  • Your XI version
  • Your OS and version
  • What symptoms you are seeing, and where
Former Nagios employee
dbuland
Posts: 2
Joined: Fri Dec 11, 2015 9:23 am

Re: SQL Crashes Help!

Post by dbuland »

Installed Version: 5.2.7
Red Hat Enterprise Linux Server release 6.8 (Santiago)


SQL: SQL Error [ndoutils] : Table '.\nagios\nagios_servicestatus' is marked as crashed and should be repaired

in the GUI and in the nagios log
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: SQL Crashes Help!

Post by rkennedy »

Take a look at this document, which will have further troubleshooting that can be done - https://support.nagios.com/kb/article.php?id=24

If repair_databases doesn't work, I would attempt the repairmysql nagios part, and then look at the force repair options.

Let us know the full input / output you see from these commands if none of this helps.
Former Nagios Employee
Locked