Nagiosql TBL_LOGBOOK Incorrect File Format
Posted: Thu Jan 29, 2015 12:47 pm
Having picked up an aging nagios installation, and trying to update it to 2014 I discovered we have some preliminary DB issues.
Current version is 2012r2.9 on Centos 6.3
[root@localhost scripts]# ./repairmysql.sh nagiosql tbl_logbook
DATABASE: nagiosql
TABLE: tbl_logbook
/var/lib/mysql/nagiosql /usr/local/nagiosxi/scripts
Stopping mysqld: [ OK ]
myisamchk: error: 'tbl_logbook' is not a MyISAM-table
Starting mysqld: [ OK ]
/usr/local/nagiosxi/scripts
===============
REPAIR COMPLETE
Running MySqlCheck again on nagiosql gives all OK’s except the problematical table below -:
nagiosql.tbl_lnkTimeperiodToTimeperiod OK
nagiosql.tbl_logbook
Error : Incorrect file format 'tbl_logbook'
error : Corrupt
I have attached the output from an attempted 2014 update in case this offers some clues?
Also attached is the config error snapshot that was created when I tried to simply tried to update an existing service in the nagiosXI gui. im presuming theres something in there that relies on the broken nagiosql DB. ..?
Please advise.. built in repair scripts say Repair complete. However, its not completed successfully!
Thanks in anticipation gurus
Current version is 2012r2.9 on Centos 6.3
[root@localhost scripts]# ./repairmysql.sh nagiosql tbl_logbook
DATABASE: nagiosql
TABLE: tbl_logbook
/var/lib/mysql/nagiosql /usr/local/nagiosxi/scripts
Stopping mysqld: [ OK ]
myisamchk: error: 'tbl_logbook' is not a MyISAM-table
Starting mysqld: [ OK ]
/usr/local/nagiosxi/scripts
===============
REPAIR COMPLETE
Running MySqlCheck again on nagiosql gives all OK’s except the problematical table below -:
nagiosql.tbl_lnkTimeperiodToTimeperiod OK
nagiosql.tbl_logbook
Error : Incorrect file format 'tbl_logbook'
error : Corrupt
I have attached the output from an attempted 2014 update in case this offers some clues?
Also attached is the config error snapshot that was created when I tried to simply tried to update an existing service in the nagiosXI gui. im presuming theres something in there that relies on the broken nagiosql DB. ..?
Please advise.. built in repair scripts say Repair complete. However, its not completed successfully!
Thanks in anticipation gurus