Nagios XI 5.4.0 - Scheduled Backups
Posted: Mon Jan 23, 2017 6:52 pm
My Nagios XI 5.4.0 Scheduled backups are configured for SSH.
The Test Connection and Test Upload both work. There is a ton of space on both systems.
The backup_xi.sh script works fine as the nagios user when I runSo it works manually.
When I run the scheduled backup, the system makes all the smaller tar.gz files, and starts to compress them into a big tar.gz
While the big file is growing, being created, somewhere in the middle of the process, the system deletes it.
Look at this piece of the tail -f cmdsubsys.log components/scheduledbackups.log
The CMDLINE gets run before the file is finished being compressed.
I use this to see what happened and when. The gzip was still growing when it vanished.
As a result of the early deletion, the resulting file on the remote system is corrupt, backup looks like it succeeded but actually fails.
Please advise...
Thanks
Steve B
The Test Connection and Test Upload both work. There is a ton of space on both systems.
The backup_xi.sh script works fine as the nagios user when I run
Code: Select all
sudo /usr/local/nagiosxi/scripts/backup_xi.shWhen I run the scheduled backup, the system makes all the smaller tar.gz files, and starts to compress them into a big tar.gz
While the big file is growing, being created, somewhere in the middle of the process, the system deletes it.
Look at this piece of the tail -f cmdsubsys.log components/scheduledbackups.log
Code: Select all
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
tail: cmdsubsys.log: file truncated
PROCESSED 0 COMMANDS
COMMAND: CMD=1119, DATA=a:2:{i:0;s:19:"nagiosxi.1485211501";i:1;s:24:"/store/backups/nagiosxi/";}
CMDLINE=rm -rf /store/backups/nagiosxi/nagiosxi.1485211501.tar.gz
OUTPUT=
RETURNCODE=0
PROCESSED 1 COMMANDS
I use this to see what happened and when. The gzip was still growing when it vanished.
Code: Select all
cd /store/backups/nagiosxi
watch "ls -l nagi*;df -h .;ls -l"Please advise...
Thanks
Steve B