Page 1 of 2

Backup nagios XI

Posted: Tue Jan 24, 2012 8:22 am
by msanbrug
Hello,

I have seen that i can a backup with Nagios, but we want to do a backup with Backup tool.

Can you tell me all necessary filesystems or directories to restore in case of errors, I can to do a restore?

Regards,

Re: Backup nagios XI

Posted: Tue Jan 24, 2012 11:38 am
by msanbrug
I see that important files are in /usr/local/nagios and /usr/local/nagiosxi

I need to backup anymore?

Reagards,

Re: Backup nagios XI

Posted: Tue Jan 24, 2012 1:04 pm
by scottwilkerson
Best bet would be to use the documentation posted to our Library on Backing_Up_And_Restoring_XI

This way you get database backups as well, and can restore.

Re: Backup nagios XI

Posted: Wed Jan 25, 2012 3:19 am
by msanbrug
Thank you for the information.

I will do this backup, but I need to do backup with backup tool of my company. About this I need to know, filesystems and directories that I need to copy

Regards

Re: Backup nagios XI

Posted: Wed Jan 25, 2012 8:38 am
by scottwilkerson
This will depend on your company policy on what is all backed up and what your setup is like.

The bulk of the Nagios/Nagios XI system are in the following directories, but this certainly isn't a full snapshot...
/usr/local/nagios
/usr/local/nagiosxi
/usr/local/nrdp
/store/backups
/etc/httpd/conf.d
/etc/xinetd.d/
/root/scripts

Re: Backup nagios XI

Posted: Fri Jan 27, 2012 3:36 am
by msanbrug
Hello,

i can to have any document where appear all directories and files. I can't find this documentation.

Regards,

Re: Backup nagios XI

Posted: Fri Jan 27, 2012 12:45 pm
by scottwilkerson
Every install is different and your install may have other components that need to be backed up, however our backup script, backs up the following directories
/var/www/html/nagiosql
/etc/nagiosql
/usr/local/nagios
/usr/local/nagiosxi

and files
/etc/logrotate.d/nagiosxi
/etc/httpd/conf.d/nagios.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/nagiosql.conf

And the 3 databases.

Re: Backup nagios XI

Posted: Fri Feb 17, 2012 2:45 am
by msanbrug
Hello,

I exectuted backup script, baut appear:

/usr/local/nagiosxi/scripts/backup_xi.sh


[root@csplpa04 ~]# /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
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

Where I can download zip? Can I modified script and used gzip and unzip?

Re: Backup nagios XI

Posted: Fri Feb 17, 2012 8:50 am
by scottwilkerson
msanbrug wrote:Where I can download zip?

Code: Select all

yum install zip -y
msanbrug wrote:Can I modified script and used gzip and unzip?
You could but you would need to modify the restore script too..

Re: Backup nagios XI

Posted: Tue Feb 21, 2012 6:48 am
by msanbrug
Hi,

I installed zip command


Best Regards,