DEF:4=/var/rrd/data/FA0000000C56E5_5.rrd:pio:AVERAGE CDEF:pump=4,0,GT,INF,0,IF AREA:pump#99ffff:"Pumpe"
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: DEF:xxxx=/var/rrd/data/FA0000000C56E5_5.rrd:pio:AVERAGE CDEF:pump=xxxx,0,GT,INF,0,IF AREA:pump#99ffff:"Pumpe" 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. 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 J Steve _____ Steve Shipway ITS Unix Services Design Lead University of Auckland, New Zealand Floor 1, 58 Symonds Street, Auckland Phone: +64 (0)9 3737599 ext 86487 DDI: +64 (0)9 924 6487 Mobile: +64 (0)21 753 189 Email: <mailto:[email protected]> [email protected] P Please consider the environment before printing this e-mail From: [email protected] [mailto:[email protected]] On Behalf Of Marc Sent: Monday, 25 July 2011 9:05 a.m. To: [email protected] Subject: [rrd-users] rpn expressions without DEF or CDEF Variables are nor supported Hello I am getting an rpn expressions without DEF or CDEF Variables are nor supported I located the error in one of the 2 red lines but could not find out how to fix it. Can anybody gif me some helping hands? /usr/bin/rrdtool graph /var/www/owserver2/brenner_week.png --start -1week DEF:1=/var/rrd/data/A6000801CA47C7.rrd:tmp:AVERAGE LINE1:1#FF9900:"Vorlauf " DEF:max1=/var/rrd/data/A6000801CA47C7.rrd:tmp:MAX DEF:min1=/var/rrd/data/A6000801CA47C7.rrd:tmp:MIN VDEF:vlinemin1=min1,MINIMUM VDEF:vlinemax1=max1,MAXIMUM GPRINT:max1:MAX:"Maximum.\: %4.1lf %SC " GPRINT:min1:MIN:"Minimum.\: %4.1lf %SC\l" DEF:2=/var/rrd/data/67000801CA1064.rrd:tmp:AVERAGE LINE1:2#48C4EC:"Rücklauf " DEF:max2=/var/rrd/data/67000801CA1064.rrd:tmp:MAX DEF:min2=/var/rrd/data/67000801CA1064.rrd:tmp:MIN VDEF:vlinemin2=min2,MINIMUM VDEF:vlinemax2=max2,MAXIMUM GPRINT:max2:MAX:"Maximum.\: %4.1lf %SC " GPRINT:min2:MIN:"Minimum.\: %4.1lf %SC\l" DEF:3=/var/rrd/data/7A00080172AB15.rrd:tmp:AVERAGE LINE1:3#008000:"Aussentemperatur " DEF:max3=/var/rrd/data/7A00080172AB15.rrd:tmp:MAX DEF:min3=/var/rrd/data/7A00080172AB15.rrd:tmp:MIN VDEF:vlinemin3=min3,MINIMUM VDEF:vlinemax3=max3,MAXIMUM GPRINT:max3:MAX:"Maximum.\: %4.1lf %SC " GPRINT:min3:MIN:"Minimum.\: %4.1lf %SC\l" DEF:4=/var/rrd/data/FA0000000C56E5_5.rrd:pio:AVERAGE CDEF:pump=4,0,GT,INF,0,IF AREA:pump#99ffff:"Pumpe" -h 360 -w 620 -y1:2 --color GRID#dddddd --color MGRID#aaaaaa --color CANVAS#eeeeee HRULE:60#ababab Grüße/Regads Marc Tobien image004 Marc Tobien ( Direct: +49 4202 71079 |image005 Mobile: +49 15142231047 | image006 Email: [email protected] <mailto:[email protected]> This 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.
<<image001.jpg>>
<<image002.gif>>
<<image003.gif>>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
