Scheduled Backups
-
CJIndustries
- Posts: 46
- Joined: Wed Aug 24, 2016 6:39 am
Scheduled Backups
I noticed that once I upgraded to 5.5.8, the scheduled SSH backups are not working. Please advise. Thank you.
Re: Scheduled Backups
The first thing to check is for disk space issues, please send the output of these commands:
Then see if you have any crashed tables, post the output of this command:
Then check the contents of this file to see if you see any errors:
Finally, do regular local backups work properly? Please login as root an run these commands and post the full output if it fails:
Additionally, please post a screenshot of your Scheduled backup SSH settings from Admin > Scheduled Backups.
What is the output of this command as well:
Code: Select all
df -h
df -iCode: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -uroot -pnagiosxi --tableCode: Select all
/usr/local/nagiosxi/var/components/scheduledbackups.logCode: Select all
cd /usr/local/nagiosxi/scripts
./backup_xi.shWhat is the output of this command as well:
Code: Select all
ls -l /store/backups/nagiosxi-
CJIndustries
- Posts: 46
- Joined: Wed Aug 24, 2016 6:39 am
Re: Scheduled Backups
Attached output of requested commands.
You do not have the required permissions to view the files attached to this post.
Re: Scheduled Backups
You have a crashed DB table, that's likely why it's failing:
https://support.nagios.com/kb/article/n ... es-24.html
Then try the backup again and it'll likely work.
Code: Select all
| nagios_commenthistory | NULL |Please follow this guide to repair your DB tables:mysqldump: Got error: 144: Table './nagios/nagios_commenthistory' is marked as crashed and last (automatic?) repair failed when using LOCK TABLES
https://support.nagios.com/kb/article/n ... es-24.html
Then try the backup again and it'll likely work.
-
CJIndustries
- Posts: 46
- Joined: Wed Aug 24, 2016 6:39 am
Re: Scheduled Backups
Tested both local and scheduled. Looks like they are working fine now. Thanks.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Scheduled Backups
@CJIndustries, I will be closing this thread as resolved. However, feel free to open a new one if something else comes up.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.