[rrd-users] accessing vdef from another vdef
Tobias Oetiker
tobi at oetiker.ch
Wed Aug 5 06:54:48 CEST 2009
Hi Duanew,
Yesterday duanew wrote:
[...]
> but then I want to work out a ratio to adjust a, b and c by:
> >
> VDEF:ratio=maxtotal,maxtime,/
> >
> but it says "variable 'maxtotal' not DEF nor CDEF in VDEF 'ratio' ".
VDEF can not do all the calculations CDEF can for now. So you have
to use CDEF for this.
CDEF:ratio_pre=total,POP,maxtotal,maxtime,/
> Is this just not supported? Is there some other way I can do it?
> >
> >
> Here is the file script:
> >
> > http://n2.nabble.com/file/n3383194/rrdfetch.sh rrdfetch.sh
> >
>
> Sorry, I missed ths bit:
>
>
> Note that currently only aggregation functions work in VDEF rpn expressions.
> Patches to change this are welcome.
>
>
> I should be able to calculate and apply the ratio in the CDEF.
exactly
tobi
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-users
mailing list