Page 1 of 1

secondary nagios scripts

Posted: Thu May 19, 2016 8:33 am
by zahik
hi ,
since we had some issue with our server after updates ,we are setting up a secondary server on the same site
i did clone of the current machine ,configured all the networks and notification + active checks disabled


my question is do nagios xi have a script's or an how to replicate the data on a daily basis ,so the backup server will be up to date when needed
if possible also graph data

thank for the help

Re: secondary nagios scripts

Posted: Thu May 19, 2016 10:38 am
by bwallace
It sounds like scheduled backups are what you're looking for?

There are currently three supported methods of scheduled backups:

FTP - A scheduled backup that will send your System Backups via FTP to a remote server

SSH - A scheduled backup that will send your System Backups via SSH & SCP to a remote server

Local - A scheduled backup that will be stored locally on your Nagios XI server
*NOTE: A local backup is not recommended, if your XI server dies, how will you be able to access your existing backups if they are on the server that died?

All of these methods can be configured via Admin > System Backups > Scheduled Backups.

In relation to the FTP and SSH backups, the backup is created locally on the Nagios XI server and then transferred to the remote server. Hence you will need enough free space on the XI server to create the backup before it is transferred. Once transferred the local copy is removed.

Re: secondary nagios scripts

Posted: Thu May 19, 2016 11:18 am
by zahik
hi thanks for the reply

we are backing to a nfs mount the server use it as a local backup (but it really on a network :) so i can recover
when i do full restore a lot of small thing get reset to what was in the backup (like send email address ,backup location and more)
the restore working to good(restore thing i don't want)

i only want to restore hosts ,services ,command ,contacts ,plugin folder

Re: secondary nagios scripts

Posted: Thu May 19, 2016 12:45 pm
by hsmith
I would just whip something up in bash to rsync those files over to your NFS share. Put that on a cron job and you should be good. We can't write this script for you, but if you run in to issues we can attempt to help you out.

Re: secondary nagios scripts

Posted: Thu May 19, 2016 1:20 pm
by eloyd
If you need additional help, please feel free to PM me. We do this sort of backup/rsync/restore operation a lot.

Re: secondary nagios scripts

Posted: Thu May 19, 2016 4:44 pm
by tmcdonald
Thanks for the offer, @eloyd!