<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
p.Sprechblasentext, li.Sprechblasentext, div.Sprechblasentext
        {mso-style-name:Sprechblasentext;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red'>DEF:4=/var/rrd/data/FA0000000C56E5_5.rrd:pio:AVERAGE <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red'>CDEF:pump=4,0,GT,INF,0,IF AREA:pump#99ffff:"Pumpe" <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>You are attempting to redefine the value of 4, so things are getting a bit confused. When you use a DEF to define a new variable, you cannot call this variable ‘4’ since that causes confusion. This will work:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red'>DEF:xxxx=/var/rrd/data/FA0000000C56E5_5.rrd:pio:AVERAGE <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red'>CDEF:pump=xxxx,0,GT,INF,0,IF AREA:pump#99ffff:"Pumpe" <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>But if you use ‘4’ instead of ‘xxxx’ then the DEF seems to work (it should really produce a syntax error for a disallowed DEF name!) and then the CDEF fails because it thinks the ‘4’ is a number, not the previous DEF, and so there are no variables in the RPN.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I would say this is a minor bug in RRDTool (which version are you using?) in that the syntax checker choked on the CDEF rather than the DEF, but really it is a user error as the DEF is certainly wrong </span><span style='font-family:Wingdings;color:#1F497D'>J</span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Steve<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span lang=EN-US style='color:#1F497D'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><b><span style='color:#1F497D'>Steve Shipway<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt;color:#1F497D'>ITS Unix Services Design Lead<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#1F497D'>University of Auckland, New Zealand<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;color:#1F497D'>Floor 1, 58 Symonds Street, Auckland<o:p></o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;color:#595959'>Phone: +64 (0)9 3737599 ext 86487<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;color:#595959'>DDI: +64 (0)9 924 6487<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;color:#595959'>Mobile: +64 (0)21 753 189<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;color:#595959'>Email: <a href="mailto:s.shipway@auckland.ac.nz"><span style='color:#595959'>s.shipway@auckland.ac.nz</span></a><o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-GB style='font-size:18.0pt;font-family:Webdings;color:green'>P</span><span lang=EN-GB style='color:blue'> </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:green'>Please consider the environment before printing this e-mail</span><span lang=EN-GB style='color:blue'> </span><span lang=EN-GB style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:navy'><o:p></o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;color:#1F497D'><o:p> </o:p></span></i></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] <b>On Behalf Of </b>Marc<br><b>Sent:</b> Monday, 25 July 2011 9:05 a.m.<br><b>To:</b> rrd-users@lists.oetiker.ch<br><b>Subject:</b> [rrd-users] rpn expressions without DEF or CDEF Variables are nor supported<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Hello<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>I am getting an “rpn expressions without DEF or CDEF Variables are nor supported”<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>I located the error in one of the 2 red lines but could not find out how to fix it.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>Can anybody gif me some helping hands?<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>/usr/bin/rrdtool graph /var/www/owserver2/brenner_week.png --start -1week <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:1=/var/rrd/data/A6000801CA47C7.rrd:tmp:AVERAGE <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>LINE1:1#FF9900:"Vorlauf " <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:max1=/var/rrd/data/A6000801CA47C7.rrd:tmp:MAX <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:min1=/var/rrd/data/A6000801CA47C7.rrd:tmp:MIN <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'>VDEF:vlinemin1=min1,MINIMUM <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'>VDEF:vlinemax1=max1,MAXIMUM <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>GPRINT:max1:MAX:"Maximum.\: %4.1lf %SC " <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'>GPRINT:min1:MIN:"Minimum.\: %4.1lf %SC\l" <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:2=/var/rrd/data/67000801CA1064.rrd:tmp:AVERAGE <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>LINE1:2#48C4EC:"Rücklauf " <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:max2=/var/rrd/data/67000801CA1064.rrd:tmp:MAX <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:min2=/var/rrd/data/67000801CA1064.rrd:tmp:MIN <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'>VDEF:vlinemin2=min2,MINIMUM <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'>VDEF:vlinemax2=max2,MAXIMUM <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>GPRINT:max2:MAX:"Maximum.\: %4.1lf %SC " <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'>GPRINT:min2:MIN:"Minimum.\: %4.1lf %SC\l"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:3=/var/rrd/data/7A00080172AB15.rrd:tmp:AVERAGE <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>LINE1:3#008000:"Aussentemperatur " <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:max3=/var/rrd/data/7A00080172AB15.rrd:tmp:MAX <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>DEF:min3=/var/rrd/data/7A00080172AB15.rrd:tmp:MIN <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>VDEF:vlinemin3=min3,MINIMUM <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>VDEF:vlinemax3=max3,MAXIMUM <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>GPRINT:max3:MAX:"Maximum.\: %4.1lf %SC " <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'>GPRINT:min3:MIN:"Minimum.\: %4.1lf %SC\l" <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=DE style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red'>DEF:4=/var/rrd/data/FA0000000C56E5_5.rrd:pio:AVERAGE <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:red'>CDEF:pump=4,0,GT,INF,0,IF AREA:pump#99ffff:"Pumpe" <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>-h 360 -w 620 -y1:2 --color GRID#dddddd --color MGRID#aaaaaa --color CANVAS#eeeeee HRULE:60#ababab <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=936 style='width:701.65pt;border-collapse:collapse'><tr style='height:57.25pt'><td width=132 valign=top style='width:99.25pt;padding:0cm 5.75pt 0cm 5.75pt;height:57.25pt'><p class=MsoNormal style='line-height:115%'><span style='color:#1F497D'>Grüße/Regads</span><span style='font-size:10.0pt;line-height:115%;color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='color:#1F497D'>Marc Tobien<o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='color:#363FF2'><img border=0 width=48 height=71 id="Bild_x0020_1" src="cid:image001.jpg@01CC4AAF.89BCB640" alt=image004> </span><span style='color:#1F497D'><o:p></o:p></span></p></td><td width=803 valign=top style='width:602.4pt;padding:0cm 5.75pt 0cm 5.75pt;height:57.25pt'><p class=MsoNormal style='line-height:115%'><span lang=EN-US style='color:#17365D'> <o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span lang=EN-US style='color:#17365D'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:115%'><span lang=EN-US style='font-size:10.0pt;line-height:115%;color:#17365D'>Marc Tobien </span><span lang=EN-US style='font-size:10.0pt;line-height:115%;font-family:"Tahoma","sans-serif";color:#17365D'><o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><span style='font-size:12.0pt;line-height:115%;font-family:Wingdings;color:#1F497D'>(</span><span lang=EN-US style='font-size:8.0pt;line-height:115%;color:#1F497D'> Direct: +49 4202 71079 |</span><span style='color:#363FF2'><img border=0 width=19 height=19 id="Bild_x0020_2" src="cid:image002.gif@01CC4AAF.89BCB640" alt=image005></span><span lang=FR style='font-size:9.0pt;line-height:115%;color:#1F497D'> </span><span lang=FR style='font-size:8.0pt;line-height:115%;color:#1F497D'>Mobile: +49 15142231047</span><span lang=FR style='font-size:9.0pt;line-height:115%;color:#1F497D'> | </span><span style='color:#363FF2'><img border=0 width=16 height=16 id="Bild_x0020_3" src="cid:image003.gif@01CC4AAF.89BCB640" alt=image006></span><span lang=FR style='font-size:9.0pt;line-height:115%;color:#1F497D'> </span><span lang=FR style='font-size:8.0pt;line-height:115%;color:#1F497D'>Email: <a href="mailto:Marc.Tobien@eds.com">Marc@Tobien.net</a></span><span lang=FR style='font-size:9.0pt;line-height:115%;color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:8.0pt;font-family:"Arial","sans-serif";color:silver'>Th</span><span lang=FR style='font-size:8.0pt;font-family:"Arial","sans-serif";color:silver'>is e-mail (and any accompanying files or documents) may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not review, duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.</span><span lang=EN-GB style='font-size:8.0pt;font-family:"Arial","sans-serif";color:silver'><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></div></body></html>