SSH Scheduled Backups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SSH Scheduled Backups

Post 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.
Former Nagios employee
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: SSH Scheduled Backups

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SSH Scheduled Backups

Post by Box293 »

A current workaround could be to mount the remote location and then point to it via a scheduled local backup instead.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SSH Scheduled Backups

Post 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.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: SSH Scheduled Backups

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SSH Scheduled Backups

Post 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
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: SSH Scheduled Backups

Post by bosecorp »

that change made my GUI unresponsive. I start getting HTTP 500 error, so I removed the line
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SSH Scheduled Backups

Post by Box293 »

I think that code is missing a ; at the end:

Code: Select all

$cfg['backup_timeout'] = 3600;
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: SSH Scheduled Backups

Post by bosecorp »

Ok, just made the change. I'll test and let you know how that goes
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: SSH Scheduled Backups

Post by rkennedy »

Sounds good, let us know the result.
Former Nagios Employee
Locked