Missing old data in graphs/rrds

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Muerte
Posts: 2
Joined: Fri Jan 15, 2016 8:16 am

Missing old data in graphs/rrds

Post by Muerte »

Hi,

I've tried searching for users with similar experiences, but have so far failed, so I'm posting here.

All my current cacti graphs are missing data before the 20th of December last year. I _know_ cacti has been polling data from my devices long since before that, so I wonder why it's chopping of data likes this.

My rra settings in cacti are as follows:
mysql> select name,timespan from rra;
+----------------------------+----------+
| name | timespan |
+----------------------------+----------+
| Daily (5 Minute Average) | 86400 |
| Weekly (30 Minute Average) | 604800 |
| Monthly (2 Hour Average) | 2678400 |
| Yearly (1 Day Average) | 33053184 |
| Hourly (1 Minute Average) | 14400 |
+----------------------------+----------+

Which according to my calculations should keep data in the yearly graph for well over a year (382 days).

The rrd file for the attached graph says it's first data sample is at December the 20th last year:

# rrdtool first --rraindex 7 /var/lib/cacti/rra/rit-d2-fw01_traffic_in_74.rrd
1450569600

# perl -e '$time = localtime(1450569600);print "$time\n"'
Sun Dec 20 01:00:00 2015

I restored the same rrd from this date, and ran rrdfirst on this as well:

# rrdtool first --rraindex 7 /tmp/restore/var/lib/cacti/rra/rit-d2-fw01_traffic_in_74.rrd
1447145280

# perl -e '$time = localtime(1447145280);print "$time\n"'
Tue Nov 10 09:48:00 2015

Does anyone know where I should look? Have I missed some setting for how large the rrd files can get?
Attachments
Yearly bandwidth graph
Yearly bandwidth graph
graph_image.php.png (16.14 KiB) Viewed 2029 times
Muerte
Posts: 2
Joined: Fri Jan 15, 2016 8:16 am

Re: Missing old data in graphs/rrds

Post by Muerte »

No one else experiencing this? The problem persists, and now the data is missing from the beginning of January:
Attachments
graph_image.php.png
graph_image.php.png (13.13 KiB) Viewed 1966 times
kiran229
Posts: 2
Joined: Wed Jan 22, 2020 5:35 am

Re: Missing old data in graphs/rrds

Post by kiran229 »

Even I am facing the same issue. For me data on graph before 2days is lost
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Missing old data in graphs/rrds

Post by TheWitness »

You didn't cite your cacti version, but I can tell it's an 0.8.x variant. Some old versions of cacti, packaged by others, did something stupid and improperly defined the RRA configuration leading to graphs that would loose data after only a small period of time. Cacti 1.x has a better design when it comes to RRDfile structure. If you are not using it, you should be.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests