[rrd-users] RRA + graph help
Anuj Jain
anujjain at sbcglobal.net
Thu Jun 17 01:26:11 MEST 2004
Hi
Thats how i make my rrd
rrdtool create test.rrd start now() step 15
DS:DS1from:GAUGE:30:0:65536
DS:DS1to:GAUGE:30:0:65536
DS:DS2from:GAUGE:30:0:65536
DS:DS2to:GAUGE:30:0:65536
DS:DS3from:GAUGE:30:0:65536
DS:DS3to:GAUGE:30:0:65536
RRA:MAX:0.5:1:240
RRA:MAX:0.5:20:288
RRA:MAX:0.5:2400:876
The Ist RRA for 1 hour (240*15=3600 sec)
The 2nd RRA for 1 day ( 288*15*20=68400 sec)
The 3rd RRA for 1 year (876*15*2400=31536000 sec)
now() is function which give the epoch time
rrdtool graph test.jpg start -1h height 220
--width 600 vertic-bale=(from/to)
--alt-autoscale title=TEST graph
DEF:pfrm=test.rrd:DS1from:MAX
DEF:pto=test.rrd:DS1to:MAX
LINE:pto#CF0000
LINE:pfrm#00001
Questions:
As rrd is expecting values only after the 15 sec, so what will happen if it get values more than once in that cycle?
Lets say I update rrd every 2 sec
rrd update test.rrd now():0:0:10:12:3:4
rrd update test.rrd now():0:0:11:13:4:5
rrd update test.rrd now():0:0:12:14:5:6
rrd update test.rrd now():0:0:13:15:6:7
rrd update test.rrd now():0:0:14:16:7:8
rrd update test.rrd now():0:0:15:17:8:9
rrd update test.rrd now():0:0:16:18:9:10
rrd update test.rrd now():0:0:17:19:10:11
rrd update test.rrd now():0:0:18:20:11:12
rrd update test.rrd now():0:0:19:21:12:13
So what will be the values stored in RRD for DS2from, DS2to, DS3from, DS3to?
The 2nd RRA which stores data for 1 day that 20*15=300 sec which is 5 min.
How the rrd saves the values? Does it store the max of those 20pdp or the last value etc?
I want to store the sum, so is it possible to do that.
3. When I plot the graph it does not show any data, just a blank graph.
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list