Page 1 of 1

backup_xi.sh fails once then works the next time.

Posted: Mon Mar 10, 2014 2:14 pm
by tbmay
Not the subject line. It said it couldn't backup mysql and check the password in the database. Ran it a second time and it seemed to work.

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
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
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
===============


Can I trust the backups? Why would it fail the first time?

Thanks a million.

Re: backup_xi.sh fails once then works the next time.

Posted: Mon Mar 10, 2014 2:18 pm
by slansing
It should be totally fine, it just needed to log in to back up the database, one thing you could test would either be applying configuration, or, if you want to see output on that process, you can run the following. Let us know if it bails due to login related issues?:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh