SQL Error [ndoutils] : Incorrect file format 'nagios_service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amane
Posts: 77
Joined: Thu Jan 18, 2018 9:53 am

SQL Error [ndoutils] : Incorrect file format 'nagios_service

Post by amane »

Hi,
Getting below mentioned error on NagiosXI console.

Error: - SQL Error [ndoutils] : Incorrect file format 'nagios_servicestatus'

removed the .lock file .log file and restarted the ndo2db but same issue.

Tried to repair database with using '/usr/local/nagiosxi/scripts/repair_databases.sh' but issue not resolved.

Could you please check and let u sknow why this issue is coming and how we can resolve.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SQL Error [ndoutils] : Incorrect file format 'nagios_ser

Post by scottwilkerson »

You can use the following command to fix this table

Code: Select all

echo 'repair table nagios_servicestatus use_frm;' | mysql -u root -pnagiosxi nagios
Then I would suggest restarting nagios

Code: Select all

service nagios restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked