[rrd-users] TOTAL function over small time periods
Chris Picton
chrisp at tangent.co.za
Thu Sep 15 14:47:23 MEST 2005
Hi all
I have a data source where I am incrementing a COUNTER rrd by one
whenever an event occurs.
I want to plot a graph of number of occurrences per
(hour/day/month/etc).
I had thought that the TOTAL function would be of help here, but am
having problems.
My command looks like:
rrdtool graph file.png -a PNG -w 512 -h 128 \
-s "1125525600" -e "1128117600" \
-x "DAY:1:WEEK:1:WEEK:1:86400:%d %b" \
-v "events" -l 0 \
"DEF:e0=file.rrd:event:AVERAGE:start=1125525600+0d:end=1125525600+1d" \
"VDEF:t0=e0,TOTAL" \
"LINE:t0#FF0000" \
"DEF:e1=file.rrd:event:AVERAGE:start=1125525600+1d:end=1125525600+2d" \
"VDEF:t1=e1,TOTAL" \
"LINE:t1#FF0000" \
"DEF:e2=file.rrd:event:AVERAGE:start=1125525600+2d:end=1125525600+3d" \
"VDEF:t2=e2,TOTAL" \
"LINE:t2#FF0000" \
"DEF:e3=file.rrd:event:AVERAGE:start=1125525600+3d:end=1125525600+4d" \
"VDEF:t3=e3,TOTAL" \
"LINE:t0#FF0000" \
etc etc
However, each timeslice is not being shown separately - I am getting 30
horizontal lines across the entire graph as opposed to just during the
relevant time period.
If there is a better way of doing what I want to do (display number of
event per (variable sized) time period), please let me know.
Alternatively, is there something wrong with my graph command above?
Regards
Chris
--
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://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list