secondary nagios scripts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zahik
Posts: 17
Joined: Mon May 11, 2015 7:53 am

secondary nagios scripts

Post 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
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: secondary nagios scripts

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
zahik
Posts: 17
Joined: Mon May 11, 2015 7:53 am

Re: secondary nagios scripts

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: secondary nagios scripts

Post 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.
Former Nagios Employee.
me.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: secondary nagios scripts

Post by eloyd »

If you need additional help, please feel free to PM me. We do this sort of backup/rsync/restore operation a lot.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: secondary nagios scripts

Post by tmcdonald »

Thanks for the offer, @eloyd!
Former Nagios employee
Locked