[drraw-users] start/end time on a DEF

Cattell, Michael Michael.Cattell at sig.com
Mon Oct 6 14:21:10 MDT 2008


Exactly,

You need to be able to do both, otherwise it's not really possible to show data shifted over unshifted.  The most obvious example would be overlaying multiple day's worth of a data set.

I would really like to be able to do this with DRRAW.

-----Original Message-----
From: Christophe Kalt [mailto:kalt at taranis.org]
Sent: Monday, October 06, 2008 4:18 PM
To: Cattell, Michael
Cc: drraw-users at taranis.org
Subject: Re: [drraw-users] start/end time on a DEF

Hi,

On Aug 12, Cattell, Michael wrote:
| I've been using drraw for some time now and find it a very useful companion to Gangila and other rrd related data.
| Of late, I've been writing some custome rrd graphs that use SHIFT so that I can compare a few day's worth of data for one data source overlaid.
|
| This is particularly nice if you want to see what yesterday's CPU or I/O is like compared to today.
|
| Here is an example of how I typically do it.  This is an example I copied from the internet, but the syntax is correct.
|
|
|
| rrdtool graph day_c.png \
|
|         --end midnight \
|
|         --start end-86400 \
|
|         --upper-limit 400000 \
|
|         --lower-limit -100000 \
|
|         DEF:a=test.rrd:ds0:AVERAGE \
|
|         DEF:b=test.rrd:ds0:AVERAGE:start=end-86400:end=midnight-86400 \
|
|         LINE:a\#00CC00:a \
|
|         LINE:200000 \
|
|         SHIFT:b:86400 \
|
|         LINE:b\#FF0000:b:STACK
|
| With 2.2a5, there's SHIFT and that's way cool.  However, I have been able to figure out how to pull off the start/end times that are on the DEF and that seems like the only way to make sure the SHIFT shows data after the offset is in effect.
|
| Any ideas on how I can do this with DRRAW?

My guess is that you can't.  Unfortunately, i missed your
email when i was working on drraw earlier today.  I'll have to
look at the docs for RRDtool to sort it out, but the way i
read and understand the above, it seems like the start/end
DEF modifiers and the SHIFT are redundant.  Either one without
the other doesn't do anything, does it?  i find that odd, but
if that's the case, it should just be a matter of teaching
drraw how to deal with this.

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.



More information about the drraw-users mailing list