backup_xi.sh Can't find zip

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

backup_xi.sh Can't find zip

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: backup_xi.sh Can't find zip

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: backup_xi.sh Can't find zip

Post 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. :<
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: backup_xi.sh Can't find zip

Post by lmiltchev »

I'm glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!