[rrd-users] Re: fetch resolution??
Carlos Carvalho
carlos at fisica.ufpr.br
Tue Jul 3 02:34:00 MEST 2001
Alex van den Bogaerdt (alex at slot.hollandcasino.nl) wrote on 3 July 2001 01:13:
>Carlos Carvalho wrote:
>
>> % rrdtool fetch archive.rrd AVERAGE > dump
>> % rrdtool fetch archive.rrd AVERAGE -r 600 > dump-600
>
>This second line will only work when the current time is
>an exact multiple of 600. So, you have a chance of 1:600
>that this works.
>
>Try something like:
>
>NOW=`date +%s`
>END=$((NOW/600*600))
>rrdtool fetch archive.rrd AVERAGE --end $END -r 600
Very interesting. Not very easy to guess though :-), thanks. Can we
have any interval?
I wonder what's the utility of having several RRA lines. My creation
was like
RRA:AVERAGE:0.5:1:17280 \
RRA:AVERAGE:0.5:12:2880 \
RRA:AVERAGE:0.5:720:720 \
RRA:AVERAGE:0.5:17280:365 \
RRA:MAX:0.5:1:17280 \
RRA:MAX:0.5:6:2880 \
RRA:MAX:0.5:24:720 \
RRA:MAX:0.5:288:365
If we can get any interval from the resolution, as the manual says
it'll try to, only one RRA for average would be necessary. I've tried
several values, substituted in END=..., but only those corresponding
to an interval of one of the RRA lines worked.
Now, the manual says rrdgraph will adjust the resolution to the size
of the gif. But if one cannot specify any resolution, it means one
cannot have an arbitrary size for the gif, right?
--
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