LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2011, 06:48 PM   #1
bt101
Member
 
Registered: Mar 2008
Posts: 61

Rep: Reputation: 19
Help understanding rrdtool hourly, daily, weekly, etc


I want to record temperatures every minute.
I would like to display graphs of the temperature that would include:
  • raw (every minute)
  • daily min/max/avg

When you define an RRA, you specify:
  • how many raw values make up the RRA
  • how many RRA values to keep

So, if I specify an RRA that has 60 * 24 = 1440 samples (one day's worth) how do I know what window is being used?

For example, I need min/max/avg values that go from midnight to midnight (the information does not make sense otherwise). In the RRA, there seems to be no way to specify where the window starts/stops. Does it just choose some random window (for example from 14:47 one day to 14:47 the next day)?
 
Old 06-27-2011, 06:25 AM   #2
norbert74
Member
 
Registered: Apr 2006
Posts: 63

Rep: Reputation: 23
As far as I know the window is set by the start time (--start) and the step (--step) defined in the rrd, you cannot set this for each rra individually if they are in the same database. What you probably need is something like this:
Code:
rrdtool create temperature.rrd 
--start 1293861600       (start at midnight, a utc value)
--step 60                (every minute the database expects a new entry) 
DS:temp:GAUGE:120:0:100  (define a datasource, name it temp, use the absolute value, if there is no data for 120 seconds insert UNKNOWN, min. allowed value is 0, max. allowed value is 100)
RRA:LAST:0.5:1:1440       (save the absolute value every minute for one day: the LAST value of 1 primary data point is the absolute value, thus no consolidation)
RRA:MIN:0.5:1440:7    (save the daily minimum for one week: MIN of 1440 primary data points, 7 times)
RRA:MAX:0.5:1440:7    (save the daily maximum for one week)
RRA:AVERAGE:0.5:1440:7    (save the daily average for one week)
 
Old 06-29-2011, 08:37 PM   #3
bt101
Member
 
Registered: Mar 2008
Posts: 61

Original Poster
Rep: Reputation: 19
Ah good tip. Thanks I'll give it a try.

I guess that all subsequent hours would line-up properly.
Days would work also (if you start at a time that has an offset for your timezone) however I would imagine days would get messed up when the clock switches between standard and daylight saving time.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logrotate rotating daily when should rotate weekly nanda_martins Linux - Server 14 03-29-2010 12:24 PM
postgres daily/weekly/ automated backups sir-lancealot Linux - Server 1 05-13-2008 07:00 PM
cron hourly, daily, cron.d jobs don't execute eggsmartha Linux - General 3 09-17-2007 06:37 PM
rrdtool cookbook recipes for daily, weekly, monthly, yearly averages? slacky Linux - Software 1 03-18-2005 06:34 PM
Daily and Weekly Digests Now Available jeremy LQ Suggestions & Feedback 1 01-07-2003 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration