Cacti RRD sizes

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

Moderators: Developers, Moderators

frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Cacti RRD sizes

Post by frist44 »

It's my understanding that Cacti collects 5 min buckets for a specified period of time and then generalizes it into much larger time segments to help save disk space. Is there something that can be done to allow cacti to retain 5 min. intervals for say 1000 days or something like that?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is a feature of rrdtool, not of cacti. And yes, you may change those settings, see http://docs.cacti.net/?q=node/393
Reinhard
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

I tried to follow this, but I'm not getting any results for my new graph.

http://docs.cacti.net/?q=node/54

has anyone been through this successfully?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Sure. Please post more information
Reinhard
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

I ran through the steps, and I'm getting the graph, but not data is on it. I realize it may take a few days to fully populate, but the more concerning thing is that the rrd associated with the particular device is the same size as the previous rrd created when the normal time Interface statistics was chosen. Since I created an RRA to keep 5 min intervals for 1000 days, I was under the impression the file size of the rrd would be significantly larger on disk.

Is this true?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The file size will be larger, indeed. Please tell me how you've run this script and post all results
Reinhard
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

As I mentioned below, I didn't run a script, I followed this:

http://docs.cacti.net/?q=node/54
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

The only difference that I put in is the RRA sizes. I entered:

Steps = 1
Rows = 288000 -> 1000 days
Timespan = 777600000 -> 900 days
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

I deleted the device and tried it again and noticed that the first time the poller runs, it creates the rrd's. However the one with the larger interval isn't created.

Why wouldn't it create that one?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post DEBUG output for the data source from "Data Sources"
Reinhard
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

Data source Debug:

/usr/bin/rrdtool create \
/var/www/cacti/rra/pnm9_traffic_out_89.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:288000 \
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

And now a rrdtool info of the very same file to compare it to the requested file layout
Reinhard
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

Well that's the thing, it never actually created the file on disk, so I can't see it. When you debug info on the interface traffic, it says the rrd file can not be found.

Why wouldn't it create it?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This may be due to host down detection. Do other graphs work for this host?
Reinhard
frist44
Posts: 30
Joined: Wed Feb 11, 2009 5:07 pm

Post by frist44 »

yeah they are all working fine. And I see their rrd's in the file system.
Post Reply

Who is online

Users browsing this forum: macan and 5 guests