[rrd-users] rpn expressions without DEF or CDEF Variables are nor supported

Steve Shipway s.shipway at auckland.ac.nz
Sun Jul 24 23:45:07 CEST 2011


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:



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 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:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 



From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of Marc
Sent: Monday, 25 July 2011 9:05 a.m.
To: rrd-users at lists.oetiker.ch
Subject: [rrd-users] rpn expressions without DEF or CDEF Variables are nor




I am getting an “rpn expressions without DEF or CDEF Variables are nor

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 


LINE1:1#FF9900:"Vorlauf               " 





GPRINT:max1:MAX:"Maximum.\: %4.1lf %SC  "   

GPRINT:min1:MIN:"Minimum.\: %4.1lf %SC\l" 



LINE1:2#48C4EC:"Rücklauf             " 





GPRINT:max2:MAX:"Maximum.\: %4.1lf %SC  "   

GPRINT:min2:MIN:"Minimum.\: %4.1lf %SC\l"



LINE1:3#008000:"Aussentemperatur      " 





GPRINT:max3:MAX:"Maximum.\: %4.1lf %SC  "   

GPRINT:min3:MIN:"Minimum.\: %4.1lf %SC\l" 



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 




Marc Tobien




Marc Tobien 

( Direct: +49 4202 71079 |image005   Mobile: +49 15142231047  |  image006
Email: Marc at Tobien.net <mailto:Marc.Tobien at eds.com>  

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.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110724/f650116d/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1542 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110724/f650116d/attachment-0001.jpeg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1054 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110724/f650116d/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 972 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110724/f650116d/attachment-0003.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4928 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110724/f650116d/attachment-0001.bin 

More information about the rrd-users mailing list