Nagios Xi Host/service performance data retention period

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Nagios Xi Host/service performance data retention period

Post by nagarjuna »

Hi Team,

We have configured NagiosXI, and its working fine with 3500 devices and with 21000 service checks.
We want to retain host/service performance data for 3 months, If i am not wrong, by default its unlimited in nagiosxi.

Can you please check and let us know how do we configure?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Xi Host/service performance data retention period

Post by sreinhardt »

It is not truely unlimited, at some point 1-2 years out it does drop data from my understanding. However more importantly it compresses and generalizes data more and more as time goes on. SO when you say that you want to store data for 3 months what do you mean exactly? You want to store every single check result for 3 months then drop it, then start to compress, or you just want to store at our normal interval and compression, but then after 3 months entirely drop data?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Nagios Xi Host/service performance data retention period

Post by nagarjuna »

Hi sreinhardt,

Thank you very much for replying,
We want graph and reports, for all hosts and services and history of logs for last 3 months only. We want to create retention period policy for storing this data on the system.
because all graphs and reports are generated from rrd files and logs, how do we create retention policy for last 3 months data only should be stored in nagiosxi machine.

We are taking backup from nagiosxi_backup.sh script.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Xi Host/service performance data retention period

Post by abrist »

Changing the rrd retention rates would require recreating all your current rrds with a new template. This will lead to a loss in historical data before this point. Additionally, altering the rrd template will not be future proof as every XI update has a chance of updating the default script to create rrds. XI does preserver data for more than 3 months currently, and you do not save space by shortening the default values as the rrds will essentially remain the same size.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Nagios Xi Host/service performance data retention period

Post by nagarjuna »

Thanks abrist,

As i understand rrd file containing current data not historic data. where is historic data saved for graph and reports in nagiosxi tool. We want 3 months data on nagiosxi and apart from this data we will create offsite data policy for them.

can you suggest us, how we can retain data for 3 months for reports.

3 months history is enough for us. do we need to do something in mysql tables also.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Xi Host/service performance data retention period

Post by abrist »

nagarjuna wrote: As i understand rrd file containing current data not historic data
This is incorrect. RRDs *do indeed* store historical information - specifically, historical performance data. Historical state information is saved in the nagios logs and the mysql "nagios" database. Again, changing the retention rate of the rrds will not save space due to how rrds work. If you want to backup historical information, backup the rrds and the mysql "nagios" database.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Nagios Xi Host/service performance data retention period

Post by nagarjuna »

Hi Abrist,

Thank you very much, I got it perfectly.

You can close this, thanks again.
Locked