<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.4064" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=623153321-20072007><FONT face=Arial 
color=#0000ff size=2>I may have it with the following invocation for say a one 
month projection (let me know if someone has a more efficient 
version?):</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=623153321-20072007><FONT face=Arial 
color=#0000ff size=2>&nbsp;rrdtool graph - \<BR>&nbsp;--start=end-38d 
\<BR>&nbsp;--end=+31d \<BR>&nbsp;--title=CPU Projection 
\<BR>&nbsp;--vertical-label=Utilization \<BR>&nbsp;--imgformat=PNG 
\<BR>&nbsp;--width=600 \<BR>&nbsp;--base=1000 \<BR>&nbsp;--height=200 
\<BR>&nbsp;--interlaced 
\<BR>&nbsp;DEF:a=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:UserPct:AVERAGE 
\<BR>&nbsp;DEF:b=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:SysPct:AVERAGE 
\<BR>&nbsp;DEF:c=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:WaitPct:AVERAGE 
\<BR>&nbsp;CDEF:G=a,b,c,+,+ \<BR>&nbsp;VDEF:D=G,LSLSLOPE 
\<BR>&nbsp;VDEF:H=G,LSLINT \<BR>&nbsp;VDEF:F=G,LSLCORREL 
\<BR>&nbsp;CDEF:E=G,POP,D,COUNT,*,H,+ \<BR>&nbsp;LINE1:G#FFA500: Usr+Sys+Wait 
\<BR>&nbsp;LINE1:E#FF0000: Projection</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=623153321-20072007></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>H<SPAN class=623153321-20072007>ere is the resultant 
graph:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=623153321-20072007><IMG 
src="cid:623153321@20072007-06A2"></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=623153321-20072007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=623153321-20072007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Nokes, Sam X <BR><B>Sent:</B> Friday, July 
20, 2007 5:25 PM<BR><B>To:</B> Nokes, Sam X; David Nolan; 
drraw-users@taranis.org<BR><B>Subject:</B> RE: [drraw-users] Unable to graph 
with VDEF operators LSLSLOPE,LSLINT, and LSLCORREL<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=194212121-20072007><FONT face=Arial 
color=#0000ff size=2>On the hand, when I add&nbsp;POP</FONT></SPAN></DIV>
<DIV><SPAN class=194212121-20072007></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>&nbsp;per&nbsp;Alex's&nbsp;answer&nbsp;at <A 
href="https://lists.oetiker.ch/pipermail/rrd-users/2006-September/011643.html">https://lists.oetiker.ch/pipermail/rrd-users/2006-September/011643.html</A></FONT></FONT></FONT></DIV>
<DIV><FONT size=+0><FONT color=#0000ff><FONT size=2><SPAN 
class=194212121-20072007></SPAN></FONT></FONT></FONT><SPAN 
class=194212121-20072007></SPAN><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>i<SPAN class=194212121-20072007>r 
works!</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT size=+0><FONT color=#0000ff><FONT size=2><SPAN 
class=194212121-20072007></SPAN></FONT></FONT></FONT><SPAN 
class=194212121-20072007></SPAN><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>H<SPAN class=194212121-20072007>ere is the successful invocation from 
drraw:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=194212121-20072007></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=194212121-20072007></SPAN></FONT></FONT></FONT><FONT face=Arial 
color=#0000ff size=2>rrdtool graph - \<BR>&nbsp;--start=end-86400 
\<BR>&nbsp;--title=CPU Projection \<BR>&nbsp;--vertical-label=Utilization 
\<BR>&nbsp;--imgformat=PNG \<BR>&nbsp;--width=600 \<BR>&nbsp;--base=1000 
\<BR>&nbsp;--height=200 \<BR>&nbsp;--interlaced 
\<BR>&nbsp;DEF:a=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:UserPct:AVERAGE 
\<BR>&nbsp;DEF:b=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:SysPct:AVERAGE 
\<BR>&nbsp;DEF:c=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:WaitPct:AVERAGE 
\<BR>&nbsp;CDEF:G=a,b,c,+,+ \<BR>&nbsp;VDEF:D=G,LSLSLOPE 
\<BR>&nbsp;VDEF:H=G,LSLINT \<BR>&nbsp;VDEF:F=G,LSLCORREL 
\<BR>&nbsp;CDEF:E=G,POP,D,COUNT,*,H,+ \<BR>&nbsp;LINE1:G#FFA500: Usr+Sys+Wait 
\<BR>&nbsp;LINE1:E#FF0000: Projection</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=194212121-20072007><FONT face=Arial color=#0000ff size=2>Now if 
I could only extend the end time beyond today we're set...</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> drraw-users-bounces@taranis.org 
[mailto:drraw-users-bounces@taranis.org] <B>On Behalf Of </B>Nokes, Sam 
X<BR><B>Sent:</B> Friday, July 20, 2007 5:01 PM<BR><B>To:</B> David Nolan; 
drraw-users@taranis.org<BR><B>Subject:</B> Re: [drraw-users] Unable to graph 
with VDEF operators LSLSLOPE,LSLINT, and LSLCORREL<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=227305820-20072007><FONT face=Arial 
color=#0000ff size=2>Appreciate the assist David. Unfortunately I received the 
familiar <FONT color=#000000><FONT size=3>"</FONT><FONT size=2>rpn expressions 
without DEF or CDEF variables are not supported" 
error</FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=227305820-20072007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=227305820-20072007><FONT face=Arial 
color=#0000ff size=2>Here is the rrd invocation generated by drraw for 
review:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=227305820-20072007><FONT face=Arial 
color=#0000ff size=2>rrdtool graph - \<BR>&nbsp;--start=end-86400 
\<BR>&nbsp;--title=CPU Projection \<BR>&nbsp;--vertical-label=Utilization 
\<BR>&nbsp;--imgformat=PNG \<BR>&nbsp;--width=600 \<BR>&nbsp;--base=1000 
\<BR>&nbsp;--height=200 \<BR>&nbsp;--interlaced 
\<BR>&nbsp;DEF:a=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:UserPct:AVERAGE 
\<BR>&nbsp;DEF:b=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:SysPct:AVERAGE 
\<BR>&nbsp;DEF:c=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:WaitPct:AVERAGE 
\<BR>&nbsp;CDEF:G=a,b,c,+,+ \<BR>&nbsp;VDEF:D=G,LSLSLOPE 
\<BR>&nbsp;VDEF:H=G,LSLINT \<BR>&nbsp;VDEF:F=G,LSLCORREL 
\<BR>&nbsp;CDEF:E=D,COUNT,*,H,+ \<BR>&nbsp;LINE1:G#FFA500: Usr+Sys+Wait 
\<BR>&nbsp;LINE1:E#FF0000: Projection</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> drraw-users-bounces@taranis.org 
[mailto:drraw-users-bounces@taranis.org] <B>On Behalf Of </B>David 
Nolan<BR><B>Sent:</B> Friday, July 20, 2007 2:35 PM<BR><B>To:</B> 
drraw-users@taranis.org<BR><B>Subject:</B> Re: [drraw-users] Unable to graph 
with VDEF operators LSLSLOPE,LSLINT, and LSLCORREL<BR></FONT><BR></DIV>
<DIV></DIV><BR><BR>
<DIV><SPAN class=gmail_quote>On 7/19/07, <B class=gmail_sendername>Nokes, Sam 
X</B> &lt;<A href="mailto:nokess@upmc.edu">nokess@upmc.edu</A>&gt; wrote</SPAN> 
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>
  <DIV><SPAN><FONT face=Arial>Realizing <FONT face="Courier New">v2.2a3</FONT> 
  is beta, and noting a comment by Alex: "In RRDtool 1.2 I made a start with 
  VDEF processing. VDEFs aren't arrays like CDEFs are, they are single values. 
  The work is far from finished, however certain functions are already 
  usable."(&nbsp;</FONT></SPAN><SPAN><FONT face=Arial><A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://www.vandenbogaerdt.nl/rrdtool/total.php" 
  target=_blank>http://www.vandenbogaerdt.nl/rrdtool/total.php </A>&nbsp;), the 
  questions follow:</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial>(1) Are the VDEF operators LSLSLOPE, LSLINT, and 
  LSLCORREL usable in drraw v2.2a3?</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial>(2) Should the vnames be placed into a linear 
  equation: y=LSLSLOPE*LSLCORREL+LSLINT ?</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial>&nbsp;&nbsp; We tried to add a <FONT size=2>CDEF 
  definition substituting VDEF vnames in a vpn format 
  (D,F,*,H,+)</FONT>&nbsp;and </FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial>&nbsp;&nbsp;&nbsp;received an error from drraw 
  stating "<FONT size=2>rpn expressions without DEF or CDEF variables are not 
  supported"</FONT></FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial>(3) Has anyone generated a least squares 
  projection with rrdtool similar to the following? If so what is the rrd 
  invocation?</FONT></SPAN></DIV></DIV></BLOCKQUOTE>
<DIV><BR>Sam, <BR></DIV><BR>I've never used these functions in rrdtool before, 
but my reading of the documentation indicates that you are close with statement 
2 above.&nbsp; <BR>I believe you need to define the VDEF variables as you're 
doing, and then define a CDEF using those variables and the automatic<BR>COUNT 
variable, i.e. CDEF:trend=D,COUNT,*,H,+&nbsp; (using the variables you defined 
above), and then graph the CDEF. 
<BR><BR>-David<BR><BR><BR></DIV><BR></BODY></HTML>