Storing data in sql database (higher data resolution)

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
D34thCr4z3
Posts: 4
Joined: Fri Oct 01, 2004 1:59 am

Storing data in sql database (higher data resolution)

Post by D34thCr4z3 »

Hi,

my company wants to have a constant 5 minutes resolution of their captured data. As far as I understood cacti/rrdtool will interpolate the values retrieved after some predefined time.

Wouldn't it be useful to retrieve the data from rrdtool and write it into the mysql database instead of graphing right out of the rrd files? You wouldn't have to interpolate your results having high resolution graphs over the last past years.

Thx for replys

D34thCr4z3
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You can change the default behavior of Cacti simply by changing the RRA configuration. We have some users who keep 2 years of 5 minute data in their RRD files (some of which are quite large).

There is no need for SQL entries to accomodate the same.

TheWitness
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?
User avatar
mokeybrains
Posts: 42
Joined: Mon Aug 22, 2005 9:39 pm
Location: San Francisco, CA
Contact:

How do I...

Post by mokeybrains »

Where do I alter 'the RRA configuration'? I would like 5 minute resolution for 2 months for some data but not all.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

It's all or none in the current version.

Click on data sources and you will find you answer.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm just on the way compiling a HOWTO for that. Just gimme some more time. But the files will really grow a looooooooooooooooooooooooooooot!
Reinhard
User avatar
mokeybrains
Posts: 42
Joined: Mon Aug 22, 2005 9:39 pm
Location: San Francisco, CA
Contact:

Post by mokeybrains »

Code: Select all

Name   	                   Steps  Rows   	 Timespan
Daily (5 Minute Average)   	 1       9000  	86400  	
Weekly (30 Minute Average) 	 6       700 	604800 	
Monthly (2 Hour Average) 	  24       775 	2678400 	
Yearly (1 Day Average)    	288       797 	33053184 	
I upded the 5 minute average rowes to '9000' (9000 5 minute steps equals 31 days) and that didn't work. Do I need to alter the timespan row? If so, why is the timespan row not auto calculating? Is that there incase you forget to run the cacti cron for 10 hours or something?

Still figuring out the RRA settings,
Rudy
:o
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You'll find some of my post related to that subject at
Intro for the basic understanding: How CONSOLIDATION works at http://forums.cacti.net/viewtopic.php?t=9383

Howto define very BIG rra "without data loss": http://forums.cacti.net/viewtopic.php?t=9605
Howto RESIZE existing RRAs of existing RRDs: http://forums.cacti.net/viewtopic.php?t=9627
Howto View Historical Data after Consolidation (MAX): http://forums.cacti.net/viewtopic.php?t=9826

suppose it would be better not to discuss this in the Features Forum ... :wink:
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests