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.
Nagios graphs retention period
-
- Cool Title Here
- Posts: 2188
- Joined: Thu Sep 27, 2012 9:14 am
- Location: Rochester, NY
Re: Nagios graphs retention period
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
- Posts: 1403
- Joined: Fri Jul 12, 2019 11:10 am
Re: Nagios graphs retention period
Thanks, Eric!
Kasul, does the link that Eric posted answer your question?
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 2
- Joined: Tue Aug 06, 2019 1:37 am
Re: Nagios graphs retention period
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.
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.
-
- Cool Title Here
- Posts: 2188
- Joined: Thu Sep 27, 2012 9:14 am
- Location: Rochester, NY
Re: Nagios graphs retention period
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.

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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
- Dreams In Code
- Posts: 7682
- Joined: Wed Feb 11, 2015 12:54 pm
Re: Nagios graphs retention period
@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.
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.