Page 1 of 1

backup_xi.sh Can't find zip

Posted: Fri Sep 23, 2011 5:18 pm
by jrmartin
Hello,
R1.7 prebuilt VM.

ran the backup script and received the following status:
[root@nadc-nag-p01 nagios]# /usr/local/nagiosxi/scripts/backup_xi.sh
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: file changed as we read it
Backing up Nagios XI...
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...
/usr/local/nagiosxi/scripts/backup_xi.sh: line 103: zip: command not found

===============
BACKUP COMPLETE
===============
Backup stored in /store/backups/nagiosxi/1316815917.zip

but there is no backup file there:
[root@nadc-nag-p01 nagiosxi]# pwd
/store/backups/nagiosxi
[root@nadc-nag-p01 nagiosxi]# ls -la
total 8
drwxr-xr-x 2 root root 4096 Sep 23 15:14 .
drwxr-xr-x. 5 root root 4096 Sep 23 15:11 ..

Any fixes available for this? Thanks.
Jeff

Re: backup_xi.sh Can't find zip

Posted: Mon Sep 26, 2011 11:17 am
by lmiltchev
It seems like zip is not installed by default in CentOS 6, which caused this error. You can run:

Code: Select all

# yum install -y zip
Then try running the backup script again. Now you should have the zip file created.

This problem should be fixed in the new VM image that we posted.

Hope this helps!

Re: backup_xi.sh Can't find zip

Posted: Mon Sep 26, 2011 1:46 pm
by jrmartin
yes I installed zip and it works as expected. just an fyi that it was not included in base Centos.. seems like a lot of stuff I take for granted was not included in centos 6. :<

Re: backup_xi.sh Can't find zip

Posted: Mon Sep 26, 2011 4:06 pm
by lmiltchev
I'm glad I could help!