Backup nagios xi

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Backup nagios xi

Post 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,
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: Backup nagios xi

Post by msanbrug »

I see that important files are in /usr/local/nagios and /usr/local/nagiosxi

I need to backup anymore?

Reagards,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Backup nagios xi

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: Backup nagios xi

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Backup nagios xi

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: Backup nagios xi

Post by msanbrug »

Hello,

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

Regards,
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Backup nagios xi

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: Backup nagios xi

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Backup nagios xi

Post 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..
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
msanbrug
Posts: 58
Joined: Fri Nov 04, 2011 7:40 am

Re: Backup nagios xi

Post by msanbrug »

Hi,

I installed zip command


Best Regards,