Page 2 of 2

Re: ftp backups stopped working

Posted: Thu Jun 02, 2016 12:26 pm
by WillemDH
Output of the backup (minus the 'file changed as we read it messages):

Code: Select all

/usr/local/nagiosxi/scripts/backup_xi.sh
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up PostgresQL databases...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...

===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/1464887318.tar.gz

Code: Select all

ls -la /store/backups/nagiosxi
total 4384952
drwxr-xr-x  6 nagios nagios       4096 Jun  2 19:25 .
drwxr-xr-x. 5 root   root         4096 May 29  2013 ..
-rw-r--r--  1 nagios nagios 4490146704 Jun  2 19:25 1464887318.tar.gz
drwxr-xr-x  4 nagios users        4096 May 27 00:17 nagiosxi.1464300301
drwxr-xr-x  4 nagios users        4096 May 28 00:20 nagiosxi.1464386702
drwxr-xr-x  4 nagios users        4096 May 29 00:17 nagiosxi.1464473101
drwxr-xr-x  4 nagios users        4096 Jun  1 10:12 nagiosxi.1464768001

Re: ftp backups stopped working

Posted: Thu Jun 02, 2016 12:49 pm
by lmiltchev
It seems like the local backup worked this time. Can you try scheduling a FTP backup a few minutes in the future to see if it is going to complete successfully?

Re: ftp backups stopped working

Posted: Thu Jun 02, 2016 3:46 pm
by WillemDH
Ludmill,

I already knew the local basckups were working (+-) as my disk was filling up fast. Anyway I scheduled it at 23:45. I'll let you know tomorrow hopw it goes. Tested the ftp conection, username password ok, File Upload test ok.

Grtz

Re: ftp backups stopped working

Posted: Thu Jun 02, 2016 4:39 pm
by tgriep
Let us know how it works out for you.
You may want to go back in to the /store/backups/nagiosxi folder and delete the failed backup folders to free up some space on the server.

Re: ftp backups stopped working

Posted: Sat Jun 04, 2016 4:38 am
by WillemDH
It seems like repairing the database fixed the issue. The backup script should catch this problems and should give a messgae in the scheduled backups component don't you think?

Re: ftp backups stopped working

Posted: Mon Jun 06, 2016 10:45 am
by lmiltchev
The backup script should catch this problems and should give a messgae in the scheduled backups component don't you think?
This would be nice - I can file an internal feature request for adding this functionality if you want me to.

Re: ftp backups stopped working

Posted: Mon Jun 06, 2016 12:04 pm
by WillemDH
Please do and close this thread please. Tx!!

Re: ftp backups stopped working

Posted: Mon Jun 06, 2016 12:22 pm
by lmiltchev
Done. TASK ID 8722.