By default XI systems have this DB backed up in
/store/backups/mysql/daily/nagios
/store/backups/mysql/weekly/nagios
/store/backups/mysql/monthly/nagios
Do you have these?
If so they are just gzip, and are created on a daily cron, here is an example restore of the nagios DB
Thank you for your response, i am having this kind of error messages in /var/log/messages from last 1 month or so . I just want to know how can i fix nagios_systemcommands table which is showing as "Incorrect file format".
If i restore the backup file it is same error we will be having in logs again because this error is appearing from last 1 month or so.
Could you please help me to fix this issue bu repairing the table?i tried to repair it but no luck
Thanks in Advance... your help will be appreciated much
echo "repair table nagios.nagios_systemcommands use_frm;" | mysql -pnagiosxi
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
I ran the command as you provided and for miute or so there was no erros in the /var/log/messages but after some time again it started giving same error
"localhost ndo2db: mysql_error ' Incorrect file format 'nagios_systemcommands' ' "
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.