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
secondary nagios scripts
Re: secondary nagios scripts
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.
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: secondary nagios scripts
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
we are backing to a nfs mount the server use it as a local backup (but it really on a network
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
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.
Former Nagios Employee.
me.
me.
Re: secondary nagios scripts
If you need additional help, please feel free to PM me. We do this sort of backup/rsync/restore operation a lot.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!