Page 3 of 4

Re: SSH Scheduled Backups

Posted: Wed Nov 04, 2015 2:27 pm
by tmcdonald
Would an upgrade be possible? I can't seem to find the case notes, but I know around the time of your version there were some hard-coded paths in the backup scripts that were throwing things off.

Re: SSH Scheduled Backups

Posted: Wed Nov 04, 2015 2:34 pm
by bosecorp
it's possible. I know JR told me that he would help me with the upgrade.

at this point of time, I would like not to do it because I lost my Linux admin.

I upgraded my development environment and it was not straight forward, I run into a lot issues, and my dev environment is just standard installation of Nagios XI with minimal customizations

Re: SSH Scheduled Backups

Posted: Wed Nov 04, 2015 6:08 pm
by Box293
A current workaround could be to mount the remote location and then point to it via a scheduled local backup instead.

Re: SSH Scheduled Backups

Posted: Wed Nov 04, 2015 6:11 pm
by jdalrymple
upgrading your prod env is definitely going to be a monster... that's not going to be the solution to this problem.

Can you run the following for me bosecorp:

`cd /usr/local/nagiosxi/scripts; time backup_xi.sh`

Just want to see how long the backup takes. I have a hunch of why this is happening, once I know how long it takes I can be certain and I'll dig into how to fix it.

Re: SSH Scheduled Backups

Posted: Thu Nov 05, 2015 1:07 pm
by bosecorp
if you want to know how long it takes, the backup starts at 9:20 pm every night and it finishes around 10:10. so, it takes 1 hour

Re: SSH Scheduled Backups

Posted: Thu Nov 05, 2015 2:01 pm
by jdalrymple
Set this variable somewhere near the top of your /usr/local/nagiosxi/html/config.inc.php:

Code: Select all

// Increase backup timeout
$cfg['backup_timeout'] = 3600

Re: SSH Scheduled Backups

Posted: Thu Nov 05, 2015 3:26 pm
by bosecorp
that change made my GUI unresponsive. I start getting HTTP 500 error, so I removed the line

Re: SSH Scheduled Backups

Posted: Thu Nov 05, 2015 6:08 pm
by Box293
I think that code is missing a ; at the end:

Code: Select all

$cfg['backup_timeout'] = 3600;

Re: SSH Scheduled Backups

Posted: Fri Nov 06, 2015 11:34 am
by bosecorp
Ok, just made the change. I'll test and let you know how that goes

Re: SSH Scheduled Backups

Posted: Fri Nov 06, 2015 11:45 am
by rkennedy
Sounds good, let us know the result.