[rrd-users] LSLOPE and 90% breach

Big B cb1300nz at gmail.com
Mon Feb 16 23:15:51 CET 2009


Go day everybody

I want to print the date in a comment in a graph where i calculate the
forecast of utilization 1 month into the future.

Here is a code snippet of what i'm doing.

Any ideas or pointers in the right direction would be appreciated. My RPN is
rusty or rather VERY rusty.

VDEF:D=data2,LSLSLOPE \
VDEF:H=data2,LSLINT \
VDEF:D2=usd2,LSLSLOPE \
VDEF:H2=usd2,LSLINT \
VDEF:D3=usd3,LSLSLOPE \
VDEF:H3=usd3,LSLINT \
CDEF:projection=data2,POP,D,COUNT,*,H,+ \
CDEF:result=projection,100,GT,100,projection,IF \
CDEF:resulta=result,0,LT,0,result,IF \
CDEF:projection2=usd2,POP,D2,COUNT,*,H2,+ \
CDEF:result2=projection2,100,GT,100,projection2,IF \
CDEF:result2a=result2,0,LT,0,result2,IF \
CDEF:projection3=usd3,POP,D3,COUNT,*,H3,+ \
CDEF:result3=projection3,100,GT,100,projection3,IF \
CDEF:result3a=result3,0,LT,0,result3,IF \
COMMENT:"Projection \n" \
COMMENT:"-------------------------------------------------------------------
------------- \n" \
LINE1:resulta#FF0000:"1 Month Forcast From $str1 to $str2" \
LINE1:result3a#00FF00:"3 Weeks Forcast From $str3 to $str4" \
GPRINT:result3a:LAST:"Final Value of \:%3.1lf%% \n" \
LINE1:result2a#0000FF:"2 Weeks Forcast From $str5 to $str6" \
GPRINT:result2a:LAST:"Final Value of \:%3.1lf%% \n" \
COMMENT:"-------------------------------------------------------------------
------------- \n" \



More information about the rrd-users mailing list