<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Unable to get 2 different weeks in one graph</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left>
<DIV dir=ltr align=left><SPAN class=894203316-20032007><FONT face=Arial
size=2>Shift would be the way to do it, but this was introduced in
1.2.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=894203316-20032007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=894203316-20032007><FONT face=Arial
size=2>Examples are located here:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=894203316-20032007><FONT face=Arial
size=2><A
href="BLOCKED::http://www.vandenbogaerdt.nl/rrdtool/shift.php">http://www.vandenbogaerdt.nl/rrdtool/shift.php</A></FONT></SPAN></DIV></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rrd-users-bounces@lists.oetiker.ch
[mailto:rrd-users-bounces@lists.oetiker.ch] <B>On Behalf Of </B>Thornton,
Paul<BR><B>Sent:</B> Monday, March 19, 2007 22:25<BR><B>To:</B>
rrd-users@lists.oetiker.ch<BR><B>Subject:</B> [rrd-users] Unable to get 2
different weeks in one graph<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi,</FONT> </P>
<P><FONT face=Arial size=2>I have been capturing data for approximately 2 weeks
now for JVM heap usage and am trying to get last week's data in one
line</FONT></P>
<P><FONT face=Arial size=2>and the weeks before on another line within the same
graph. This is good to be able to see what the difference is between the
2</FONT></P>
<P><FONT face=Arial size=2>weeks and perhaps from 1 month ago as compared to
last week.</FONT> </P>
<P><FONT face=Arial size=2>Version I am using: rrdtool-1.0.49</FONT> </P>
<P><FONT face=Arial size=2>1.</FONT> <BR><FONT face=Arial size=2>I created the
rrd database using the following command</FONT> </P>
<P><FONT face=Arial size=2>/usr/local/rrdtool-1.0.49/bin/rrdtool create
jvm_heap.rrd \</FONT> <BR><FONT face=Arial size=2>DS:SnapShotAvg:GAUGE:600:U:U
\</FONT> <BR><FONT face=Arial size=2>DS:SnapShotMax:COUNTER:600:U:U \</FONT>
<BR><FONT face=Arial size=2>RRA:AVERAGE:0.5:1:600 \</FONT> <BR><FONT face=Arial
size=2>RRA:AVERAGE:0.5:6:700 \</FONT> <BR><FONT face=Arial
size=2>RRA:AVERAGE:0.5:24:775 \ </FONT><BR><FONT face=Arial
size=2>RRA:AVERAGE:0.5:288:797 \</FONT> <BR><FONT face=Arial
size=2>RRA:MAX:0.5:1:600 \</FONT> <BR><FONT face=Arial size=2>RRA:MAX:0.5:6:700
\</FONT> <BR><FONT face=Arial size=2>RRA:MAX:0.5:24:775 \</FONT> <BR><FONT
face=Arial size=2>RRA:MAX:0.5:288:797</FONT> </P>
<P><FONT face=Arial size=2>2.</FONT> <BR><FONT face=Arial size=2>I then tried to
create a graph with 2 different weeks in the same graph using the following
command</FONT> </P>
<P><FONT face=Arial size=2>/usr/local/rrdtool-1.0.49/bin/rrdtool graph
jvm_comp.png --step 3600 --width 600 --end now --start end-1w \</FONT> <BR><FONT
face=Arial size=2>DEF:SnapShotAvg=$BASE/$RRF.rrd:SnapShotAvg:AVERAGE \</FONT>
<BR><FONT face=Arial
size=2>DEF:SnapShotAvg1=$BASE/$RRF.rrd:SnapShotAvg:AVERAGE:end=now-1w:start=end-2w
\</FONT> <BR><FONT face=Arial size=2>LINE1:SnapShotAvg#267C8A:\"This Week
Average\" \</FONT> <BR><FONT face=Arial
size=2>LINE1:SnapShotAvg1#992222:\"Last Week Average\" </FONT></P>
<P><FONT face=Arial size=2>All that I ever get, regardless of the time period I
use above (I.E. Trying to compare today with yesterday on the same graph using
-1d and -2d)</FONT></P>
<P><FONT face=Arial size=2>is one line in the graph. When I change the current
week to an AREA and not a LINE, the second week simply runs along the top of the
area</FONT></P>
<P><FONT face=Arial size=2>which to me looks like each output is showing exactly
the same data as each other (which is --end now --start end-1w).</FONT> </P>
<P><FONT face=Arial size=2>Can anyone shed some light as to what may be
happenning here and why the second line is not showing up the data from the week
before. </FONT></P>
<P><FONT face=Arial size=2>I have read something about SHIFT, but my version
does not have this option available to me and I am unable to upgrade due to
server access.</FONT></P>
<P><FONT face=Arial size=2>Thank you,</FONT> </P>
<P><FONT face=Arial size=2>P.T.</FONT> </P></BODY></HTML>