How To Backup and Restore Fully Automated Nagios(FAN Nagios) with Configuration and All.

FAN Server Backup
The fan-backup script is available if you want backup your FAN server.

Install the fan-backup rpm :

# yum install fan-backup

To backup a FAN standonale, run

# /opt/ -s

To get help, run :

# /opt/ –help
FAN Server  Restore
To restore a backup files, run :

# cd /var/backup/XXXXXXXX_XXXXXX/

# rsync -ravcz centreon /etc
# rsync -ravcz nagvis /etc
# rsync -ravcz logos /usr/share/nagios/images/
# rsync -ravcz plugins /usr/lib/nagios/ # i386 arch or
# rsync -ravcz plugins /usr/lib64/nagios/ # x86_64 arch
# rsync -ravcz pages /var/www/dokuwiki/data/

To restore database :

# cd /var/backup/XXXXXXXX_XXXXXX/databases

# zcat centreon2/centreon2.sql.gz | mysql centreon2
# zcat centreon2_storage/centreon2_storage.sql.gz | mysql centreon2_storage
# zcat nagios/nagios.sql.gz | mysql nagios


Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.