[rrd-users] 90% breaching graph
Big B
cb1300nz at gmail.com
Tue Feb 24 23:59:14 CET 2009
Good day all.
I am doing a forecasting graph. What i would like to put in the graph is the
date when the forecast breaches to 85% and 90% threshold.
Here is some of my code
Thanx
Brian
DEF:mx1=$a:cpu:AVERAGE:start=now-8w:end=now \
DEF:data2=$a:cpu:AVERAGE:start=now-8w:end=now+1m \
DEF:usd2=$a:cpu:AVERAGE:start=now-4w:end=now+2w \
DEF:usd3=$a:cpu:AVERAGE:start=now-6w:end=now+3w \
DEF:data3=$a:cpu:AVERAGE \
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" \
GPRINT:resulta:LAST:"Final Value of \:%3.1lf%% \n" \
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" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20090225/ecac0cae/attachment-0001.html
More information about the rrd-users
mailing list