How to archive the XI ?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eric.lin826
Posts: 33
Joined: Thu Apr 02, 2015 11:51 pm

How to archive the XI ?

Post by eric.lin826 »

Hi
I need to archive the XI system and keep the data (like rrd etc.) within a year.
Is there has any solution to do this ?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to archive the XI ?

Post by tmcdonald »

What do you mean by "archive"? Do you want to take a backup of the system, or are you asking how to modify data retention settings?
Former Nagios employee
eric.lin826
Posts: 33
Joined: Thu Apr 02, 2015 11:51 pm

Re: How to archive the XI ?

Post by eric.lin826 »

Hi
For example.
The XI system is running for 2 years.
I want to archive the first year's data and keep the second year's data on the system.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to archive the XI ?

Post by ssax »

My recommendation would be for you to first do an XI backup to capture the data that you currently have (this will contain all the data needed to restore so you can access it):

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Then setup scheduled backups and transfer them off-server so that you can access the data as needed.

Then go to Admin > System Config > Performance Settings > Database and adjust the retention settings as needed.

RRD files always stay the same size so you shouldn't need to worry about that, but if you really wanted to prune them you would need to export the data to XML, delete the data you don't want, and then import the XML file into a new RRD.

This would give you an example of the process:
- Note that once you exported them to XML you would need to script the removal or manually modify the XML files before importing into the new RRDs

https://support.nagios.com/kb/article.php?id=166

Let us know if you have any questions.


Thank you
eric.lin826
Posts: 33
Joined: Thu Apr 02, 2015 11:51 pm

Re: How to archive the XI ?

Post by eric.lin826 »

Thanks !
I will follow your recommendation.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: How to archive the XI ?

Post by mcapra »

Let us know if you have further questions!
Former Nagios employee
https://www.mcapra.com/
Locked