Scheduled Backups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CJIndustries
Posts: 46
Joined: Wed Aug 24, 2016 6:39 am

Scheduled Backups

Post by CJIndustries »

I noticed that once I upgraded to 5.5.8, the scheduled SSH backups are not working. Please advise. Thank you.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Backups

Post by ssax »

The first thing to check is for disk space issues, please send the output of these commands:

Code: Select all

df -h
df -i
Then see if you have any crashed tables, post the output of this command:

Code: 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 --table
Then check the contents of this file to see if you see any errors:

Code: Select all

/usr/local/nagiosxi/var/components/scheduledbackups.log
Finally, do regular local backups work properly? Please login as root an run these commands and post the full output if it fails:

Code: Select all

cd /usr/local/nagiosxi/scripts
./backup_xi.sh
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

ls -l /store/backups/nagiosxi
CJIndustries
Posts: 46
Joined: Wed Aug 24, 2016 6:39 am

Re: Scheduled Backups

Post by CJIndustries »

Attached output of requested commands.
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Scheduled Backups

Post by ssax »

You have a crashed DB table, that's likely why it's failing:

Code: Select all

| nagios_commenthistory                      |       NULL |
mysqldump: Got error: 144: Table './nagios/nagios_commenthistory' is marked as crashed and last (automatic?) repair failed when using LOCK TABLES
Please follow this guide to repair your DB 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

Post by CJIndustries »

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

Post by npolovenko »

@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.
Locked