Thanks Darren.<br><br>How do I go about doing a TOTAL VDEF? That would take care of summing up the data points between start/end?<br><br>You're right, what I meant was to print it, on the legend I guess is fine.<br><br>Ricardo<br><br>At Wednesday, 09-08-2010 on 17:26 "A Darren Dunham" <ddunham@taos.com> wrote:<br><blockquote style="border-width: 0pt 0pt 0pt 2px; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(34, 67, 127); padding: 0px 0px 0px 5px; margin: 0px 0px 0px 5px;">On Wed, Sep 08, 2010 at 01:26:02PM -0700, Ricardo Kleemann wrote:<br>
> Thanks Simon.<br>
> <br>
> I'm not yet very familiar with rrdtool, but could I read out data<br>
> values for an arbitrary period between time1 and time2 and add up the<br>
> values to come up with accumulated?<br>
> <br>
> I was thinking of a page where I could choose the dates and then have<br>
> a graph drawn for those dates, including the accumulated values as<br>
> well.<br>
<br>
Simplest is to pass that to rrdgraph as new --start and --end times and<br>
then use a TOTAL VDEF to sum them.<br>
<br>
If you truly want to sum something that is only a subset of the graph,<br>
I'd probably try to construct a CDEF from the original data and have it<br>
nulled out outside the region of interest. Then run TOTAL on it as above.<br>
<br>
> >I would like to also display an accumulated counter (say total?<br>
> >bandwidth for the month), how would I do that on the graph and on?<br>
> >the rrd table?<br>
<br>
If you generate a total with a VDEF, you can print it as part of the<br>
legend with GPRINT or to stdout with PRINT. I don't really know what<br>
you mean by "on the graph".<br>
<br>
-- <br>
Darren<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
rrd-users@lists.oetiker.ch<br>
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</blockquote>