[rrd-users] Re: does 1.0.36 work
Thierry Nkaoua
tnka at linux-sottises.net
Sat Apr 13 17:23:17 MEST 2002
Alex van den Bogaerdt a dit:
>
> Tobias Oetiker wrote:
>
>> I just got mail form a person who claims that rpn math would not work
>> any more in 1.0.36 (invalid rpn expression) ...
>>
>> I can not reproduce this here, for me all seems to work fine ...
>>
>> help would be appreciated ...
>
> You've probably received an example cdef in the report; please share...
Hi,
That's me who mentionned the problem
Below is a copy of the mail including the rrdtool command that gives problem
-----------------------
Here is an example of what does not work any more:
with 1.0.35: OK
/usr/local/rrdtool-1.0.35/bin/rrdtool graph
/webnew/mrtnk/images_rrd/hits_docs_rrd-day.png -s -86400 -e -300 -w 600 -h
200 -v "Hits/h" -a PNG -l -2000 -u -5000 -t "Hits et documents sur
linux-sottises"
DEF:indata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds0:AVERAGE
CDEF:inlegend=indata,3600,* CDEF:in=indata,UN,0,indata,IF,3600,*
DEF:inmaxdata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds0:MAX
CDEF:inmax=inmaxdata,UN,0,inmaxdata,IF,3600,* CDEF:indiff=inmax,in,-
DEF:outdata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds1:AVERAGE
CDEF:outlegend=outdata,3600,*
DEF:outmaxdata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds1:MAX
CDEF:inmaxlegend=inmaxdata,3600,* CDEF:outmaxlegend=outmaxdata,3600,*
CDEF:out=0,outdata,UN,0,outdata,IF,-,3600,*
CDEF:outmax=0,outmaxdata,UN,0,outmaxdata,IF,-,3600,*
CDEF:outdiff=outmax,out,- AREA:in#de8876:"Hits/h" GPRINT:inlegend:MAX:" Max
%1.1lf %sHits/h" GPRINT:inlegend:AVERAGE:"Average %1.1lf %sHits/h"
GPRINT:inlegend:LAST:"Current %1.1lf %sHits/h\l" AREA:out#7294de:"Docs/h"
GPRINT:outlegend:MAX:" Max %1.1lf %sHits/h"
GPRINT:outlegend:AVERAGE:"Average %1.1lf %sHits/h"
GPRINT:outlegend:LAST:"Current %1.1lf %sHits/h\l" COMMENT:"sam avr 13
16:10:19 CEST 2002\r"
695x298
exaclty the same with 1.0.36
/usr/local/rrdtool-1.0.36/bin/rrdtool graph
/webnew/mrtnk/images_rrd/hits_docs_rrd-day.png -s -86400 -e -300 -w 600 -h
200 -v "Hits/h" -a PNG -l -2000 -u -5000 -t "Hits et documents sur
linux-sottises"
DEF:indata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds0:AVERAGE
CDEF:inlegend=indata,3600,* CDEF:in=indata,UN,0,indata,IF,3600,*
DEF:inmaxdata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds0:MAX
CDEF:inmax=inmaxdata,UN,0,inmaxdata,IF,3600,* CDEF:indiff=inmax,in,-
DEF:outdata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds1:AVERAGE
CDEF:outlegend=outdata,3600,*
DEF:outmaxdata=/webnew/mrtnk/logs_rrd/hits_docs_rrd.rrd:ds1:MAX
CDEF:inmaxlegend=inmaxdata,3600,* CDEF:outmaxlegend=outmaxdata,3600,*
CDEF:out=0,outdata,UN,0,outdata,IF,-,3600,*
CDEF:outmax=0,outmaxdata,UN,0,outmaxdata,IF,-,3600,*
CDEF:outdiff=outmax,out,- AREA:in#de8876:"Hits/h" GPRINT:inlegend:MAX:" Max
%1.1lf %sHits/h" GPRINT:inlegend:AVERAGE:"Average %1.1lf %sHits/h"
GPRINT:inlegend:LAST:"Current %1.1lf %sHits/h\l" AREA:out#7294de:"Docs/h"
GPRINT:outlegend:MAX:" Max %1.1lf %sHits/h"
GPRINT:outlegend:AVERAGE:"Average %1.1lf %sHits/h"
GPRINT:outlegend:LAST:"Current %1.1lf %sHits/h\l" COMMENT:"sam avr 13
16:10:19 CEST 2002\r"
ERROR: invalid rpn expression 'indata,3600,*'
The commands are generated from a script, so the only difference is the
rrdtool path that I changed in my config file
The problem seems to come from CDEF:inlegend=indata,3600,*
perhaps I did something wrong that works with 1.0.35 and no longer work with
1.0.36
if it is the case, I appologize!!!
but why, I have no idea
Regards
--
TNK
www.linux-sottises.net
S'il n'y a pas de solution, c'est qu'il n'y a pas de problème!
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list