Unable to run backups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Unable to run backups

Post by sreinhardt »

Can you attempt another backup, and immediately following the failure, run the following and send us the output?

Code: Select all

tail -n 200 /var/log/mysqld.log
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.
bcamp
Posts: 30
Joined: Thu May 23, 2013 2:54 pm

Re: Unable to run backups

Post by bcamp »

Requested log is attached.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to run backups

Post by lmiltchev »

You don't have any errors in the log, but try running the following command to force the repair on the "nagios_notifications" table.

Code: Select all

echo "use nagios;repair table nagios_notifications use_frm;" | mysql -pnagiosxi
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bcamp
Posts: 30
Joined: Thu May 23, 2013 2:54 pm

Re: Unable to run backups

Post by bcamp »

This was it!

Code: Select all

# echo "use nagios;repair table nagios_notifications use_frm;" | mysql -pnagiosxi
Table   Op      Msg_type        Msg_text
nagios.nagios_notifications     repair  status  OK

Code: Select all

Backing up MySQL databases...
mysqldump: Got error: 130: Incorrect file format 'nagios_statehistory' when using LOCK TABLES
Error backing up MySQL database 'nagios' - check the password in this script!
Same error, new table. Ran the same repair on the nagios_statehistory table. Now my backups are working again! This fixed a couple other problems I was running into over the last few days. The event log wasn't showing me any data, same with notifications. That data is back.

Thank you, I appreciate your help. This thread can be locked.
Locked