Nagios graphs retention period

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kusal
Posts: 2
Joined: Tue Aug 06, 2019 1:37 am

Nagios graphs retention period

Post by kusal »

Hi Guys,

Im running Nagios® Core™ Version 4.4.2 perfectly to monitor my production servers as non production servers and system.

The issue was recently discovered as, the Nagios graphs that used to draw the historical data has retention period of exactly 4 months. Means, its only showing the historical data from (4 months back to today) only when I'm requesting to draw for a year or more than that.

Does it has any configuration to be done to achieve this kind retention period thing on the performance historical data graph? I have checked the rra.cfg it has the below configuration.

======
RRA:AVERAGE:0.5:360:5840

RRA:MAX:0.5:1:20160
RRA:MAX:0.5:5:20160
RRA:MAX:0.5:30:43200
RRA:MAX:0.5:360:5840

RRA:MIN:0.5:1:20160
RRA:MIN:0.5:5:20160
RRA:MIN:0.5:30:43200
RRA:MIN:0.5:360:5840

======

Please advice on this.

Thanks.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios graphs retention period

Post by eloyd »

Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Nagios graphs retention period

Post by mbellerue »

Thanks, Eric!

Kasul, does the link that Eric posted answer your question?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
kusal
Posts: 2
Joined: Tue Aug 06, 2019 1:37 am

Re: Nagios graphs retention period

Post by kusal »

Thanks, Eric.

I went through with that post before posting this topic. But I was unable to find a solution there. I'm seeing that Im using more granularity than 5 minutes. I have shared the time frequencies below this post. I just want to make this work without loosing the historical data (before 4 months period). Can you guys assist me to achieve this?

rra.cfg file
========================
#
# Define the default RRA Step in seconds
# More Infos on
# http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html
#
RRA_STEP=5
#
# PNP default RRA config
#
# you will get 400kb of data per datasource
#
# 2880 entries with 1 minute step = 48 hours
#
RRA:AVERAGE:0.5:1:20160
#
# 2880 entries with 5 minute step = 10 days
#
RRA:AVERAGE:0.5:5:43200
#
# 4320 entries with 30 minute step = 90 days
#
RRA:AVERAGE:0.5:30:43200
#
# 5840 entries with 360 minute step = 4 years
#
RRA:AVERAGE:0.5:360:5840

RRA:MAX:0.5:1:20160
RRA:MAX:0.5:5:20160
RRA:MAX:0.5:30:43200
RRA:MAX:0.5:360:5840

RRA:MIN:0.5:1:20160
RRA:MIN:0.5:5:20160
RRA:MIN:0.5:30:43200
RRA:MIN:0.5:360:5840
========================

Plus we have configured the frequency on Nagios to get performance data on different service checks (in host configuration file) with different frequency ranges like 3 seconds, 1 minute, 3 minutes and 5 minutes.

Could you please assist me.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios graphs retention period

Post by eloyd »

First, read this again https://oss.oetiker.ch/rrdtool/doc/rrdc ... _Durations and make sure you understand it all. I mean, really understand it. :-)

Second, I've never seen RRA_STEP before but that doesn't mean it doesn't exist. However, it may not be doing what you think it's doing. I'm simply not sure.

Lastly, I'm confused by what you're trying to accomplish versus what you're actually doing. If you just want to increase the retention time, then just increase the last number accordingly. Then you need to follow the instructions in the post I referenced (https://support.nagios.com/forum/viewto ... =6&t=25569) to move old RRDs and restart and blah blah blah.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios graphs retention period

Post by ssax »

@eloyd is correct, thanks brother!

Essentially you make the changes and only new ones going forward are updated.

You would need to update the current ones (make a backup first) to add the new values, you can google search for "increase rrd retention" for a guide (or read the previously posted forum post) OR delete them and have them be recreated but those are the only methods to do that currently.
Locked