LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-17-2005, 10:15 AM   #1
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
rrdtool cookbook recipes for daily, weekly, monthly, yearly averages?


I want to make rrd graphs similar to how MRTG works & I am logging various temperatures at 5 minute intervals. Are these the correct formulas to feed into "rrdtool create" so it has the correct data to make the graphs? I couldn't find "cookbook recipes" for this anywhere, although I'm sure it has been done many times before...

For Daily Graph, every 5 minute average for 24 hours:
RRA:AVERAGE:0.5:1:288

For Weekly Graph, every 30 minute average for 7 days:
RRA:AVERAGE:0.5:6:336

For Monthly Graph, every 2 hour average for 30 days:
RRA:AVERAGE:0.5:24:360

For Yearly Graph, every 1 day average for 365 days:
RRA:AVERAGE:0.5:288:365

Thanks,
Josh
 
Old 03-18-2005, 07:34 PM   #2
filpee
LQ Newbie
 
Registered: Feb 2005
Posts: 9

Rep: Reputation: 0
For Daily Graph, every 5 minute average for 24 hours:
RRA:AVERAGE:0.5:1:288

ok theres 24 hours in a day
1440 minutes in a day
your are logging every 5 minutes
therefore you want to use 288 logs per day

same goes with the rest of them

For Weekly Graph, every 30 minute average for 7 days:
RRA:AVERAGE:0.5:6:336

7 days * 24 hours * 60 mins = 10080 mins
you log every 5 mins so 10080/5 = 2016 samples per week
you want to average every 6 samples so 2016/6 = 336


im still learning how to use rrdtool but reading through the online help on the website
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/

and going through the samples and tutorials at
http://martybugs.net/linux/rrdtool/traffic.cgi

i am getting better
:-)
good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Food recipes programs mickeyboa Fedora 2 09-25-2005 01:31 PM
Advocate in weekly/monthly messages about adding [SOLVED] to topic titles deoren LQ Suggestions & Feedback 15 07-28-2005 03:52 PM
Can nmon provide the weekly or monthly report? unixAIX AIX 1 11-09-2004 09:23 AM
Numerical recipes in C++ marios_auth Programming 0 07-08-2004 03:19 AM
Daily and Weekly Digests Now Available jeremy LQ Suggestions & Feedback 1 01-07-2003 08:04 PM

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

All times are GMT -5. The time now is 12:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration