fbpx

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/fan_backup.pl -s

To get help, run :

# /opt/fan_backup.pl –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

FacebookTwitterEmailShare

3 thoughts on “How To Backup and Restore Fully Automated Nagios(FAN Nagios) with Configuration and All.”

Leave a Comment

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