can you please list the back up what exactly will take a copy?
like example is it will take all host and services and SNMP traps and mibs?
what about the database configuration it will be same of active server?
You already saw what's going to be copied (as per the doc). There are other things that would be copied/restored as well, e.g. SNMP configs and MIBs. See the blocks of code that do that:
In /usr/local/nagiosxi/scripts/backup_xi.sh
Code: Select all
# SNMP configs and MIBS
echo "Backing up the SNMP directories"
tar czfp $mydir/etc-snmp.tar.gz /etc/snmp
tar czfp $mydir/usr-share-snmp.tar.gz /usr/share/snmp
In /usr/local/nagiosxi/scripts/restore_xi.sh
Code: Select all
# SNMP configs and MIBS
if [ -f $backupdir/etc-snmp.tar.gz ]; then
echo "Restoring SNMP configuration files..."
cd $rootdir && tar xzfps $backupdir/etc-snmp.tar.gz
fi
if [ -f $backupdir/usr-share-snmp.tar.gz ]; then
echo "Restoring SNMP MIBs..."
cd $rootdir && tar xzfps $backupdir/usr-share-snmp.tar.gz
fi
You can open these two files in a text editor, and review the code yourself to see what else is backed up and restored.
if I have some issue in passive server like Database Maintainance, event manager, Feed Processor is always red.
and for the active server is working fine.
after this activity, is this issue will be resolved and will be same of active server?
Such issues usually indicate that crond is not running on this system. Is your nagios user expired? Can you run the following commands from the command line on the backup machine, and show the output?
Code: Select all
ps -ef | grep cron | grep -v grep
tail -50 /var/log/cron
chage -l nagios
Do you see any errors / crashed tables in the database log?
or
Provided your "main" server operates properly, the "cloned" server should also function well, unless you have some other issues on your backup server, e.g. lack of resources, hardware issues, etc.