Table nagios/logentries marked as crashed and last

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Table nagios/logentries marked as crashed and last

Post by Gonela »

Hi Team,

We are not able to run the local backup. when we see the logs .Table nagios/logentries marked as crashed and last automatic repair is failed.
how can i resolve this.

I want to resolve this issue without disturbing the current monitoring.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Table nagios/logentries marked as crashed and last

Post by scottwilkerson »

This document outlines the repair procedure
https://assets.nagios.com/downloads/nag ... tabase.pdf
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Re: Table nagios/logentries marked as crashed and last

Post by Gonela »

HI Team,

We just gone through that document. Can we repair the single table why should we repair total database instead of doing single table. Can you tell me any another alternative way. how we can repair the single table without disturbing the existing environment.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Table nagios/logentries marked as crashed and last

Post by scottwilkerson »

you can do a singe table BUT you need to know all the affected tables, and either way your whole environment is already affected.

However to do a single table run the following

Code: Select all

service mysqld stop
/usr/local/nagiosxi/scripts/repairmysql.sh <database_name> <table_name>
service mysqld start
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Re: Table nagios/logentries marked as crashed and last

Post by Gonela »

Hi team,

Thanks for the reply. I should not disturb the existing mysql status. mysql should in running status. is there any command to repair the table without disturbing the environment.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Table nagios/logentries marked as crashed and last

Post by scottwilkerson »

Gonela wrote:Hi team,

Thanks for the reply. I should not disturb the existing mysql status. mysql should in running status. is there any command to repair the table without disturbing the environment.
No there is not, also, I need to strongly encourage you to fix the problem ASAP.

All of the data will not go in the database if you do not, by delaying you are actually prolonging the issue.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked