<!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=194212121-20072007><FONT face=Arial
color=#0000ff size=2>On the hand, when I add POP</FONT></SPAN></DIV>
<DIV><SPAN class=194212121-20072007></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2> per Alex's answer 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><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><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> </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> --start=end-86400
\<BR> --title=CPU Projection \<BR> --vertical-label=Utilization
\<BR> --imgformat=PNG \<BR> --width=600 \<BR> --base=1000
\<BR> --height=200 \<BR> --interlaced
\<BR> DEF:a=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:UserPct:AVERAGE
\<BR> DEF:b=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:SysPct:AVERAGE
\<BR> DEF:c=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:WaitPct:AVERAGE
\<BR> CDEF:G=a,b,c,+,+ \<BR> VDEF:D=G,LSLSLOPE
\<BR> VDEF:H=G,LSLINT \<BR> VDEF:F=G,LSLCORREL
\<BR> CDEF:E=G,POP,D,COUNT,*,H,+ \<BR> LINE1:G#FFA500: Usr+Sys+Wait
\<BR> LINE1:E#FF0000: Projection</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </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> </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> --start=end-86400
\<BR> --title=CPU Projection \<BR> --vertical-label=Utilization
\<BR> --imgformat=PNG \<BR> --width=600 \<BR> --base=1000
\<BR> --height=200 \<BR> --interlaced
\<BR> DEF:a=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:UserPct:AVERAGE
\<BR> DEF:b=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:SysPct:AVERAGE
\<BR> DEF:c=/data/nmon2web/html/020256D3D/Shared/c0prd01/rrddata//cpu_all.rrd:WaitPct:AVERAGE
\<BR> CDEF:G=a,b,c,+,+ \<BR> VDEF:D=G,LSLSLOPE
\<BR> VDEF:H=G,LSLINT \<BR> VDEF:F=G,LSLCORREL
\<BR> CDEF:E=D,COUNT,*,H,+ \<BR> LINE1:G#FFA500: Usr+Sys+Wait
\<BR> 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> <<A href="mailto:nokess@upmc.edu">nokess@upmc.edu</A>> 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."( </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> ), 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> We tried to add a <FONT size=2>CDEF
definition substituting VDEF vnames in a vpn format
(D,F,*,H,+)</FONT> and </FONT></SPAN></DIV>
<DIV><SPAN><FONT face=Arial> 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. <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,+ (using the variables you defined
above), and then graph the CDEF.
<BR><BR>-David<BR><BR><BR></DIV><BR></BODY></HTML>