Crashed service status table SQL error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
k234
Posts: 5
Joined: Fri Jan 17, 2025 11:05 am

Crashed service status table SQL error

Post by k234 »

Hello, I am getting the following error when I log into Nagios XI:

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


I think this issue is preventing me from seeing the status of my services in XI. How would I go about fixing this error?

Thank you!
gwesterman
Posts: 269
Joined: Wed Aug 23, 2023 11:29 am

Re: Crashed service status table SQL error

Post by gwesterman »

Hi @k234,

It looks as if you have encountered a database corruption error.

If you are on an XI version 2014 onwards, try running:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Else try:

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
/usr/local/nagiosxi/scripts/repairmysql.sh nagiosql
/usr/local/nagiosxi/scripts/repairmysql.sh nagiosxi
k234
Posts: 5
Joined: Fri Jan 17, 2025 11:05 am

Re: Crashed service status table SQL error

Post by k234 »

That fixed it, thank you!
Post Reply