backup_xi.sh fails once then works the next time.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

backup_xi.sh fails once then works the next time.

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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
Locked