#!/usr/bin/rrdcgi <RRD::GOODFOR -600>
<RRD::INCLUDE nav.inc.html>

## system statistics

<RRD::GRAPH ../rrd-img/sys-df-root-days.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Free Space in Flash (Day)" -v Byte -l 0 -b 1024 DEF:du=/var/lib/rrd/system.rrd:du-root:AVERAGE DEF:df=/var/lib/rrd/system.rrd:df-root:AVERAGE CDEF:used=du,1024,* CDEF:free=df,1024,* AREA:used#EE1111:"Used" GPRINT:used:MAX:" Max\: %3.2lf%s" GPRINT:used:AVERAGE:" Avg\: %3.2lf%S" GPRINT:used:LAST:" Current\: %3.2lf%SByte\n" STACK:free#11EE11:"Free" GPRINT:free:MAX:" Max\: %3.2lf%s" GPRINT:free:AVERAGE:" Avg\: %3.2lf%S" GPRINT:free:LAST:" Current\: %3.2lf%SByte" >

<RRD::GRAPH ../rrd-img/sys-df-root-week.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Free Space in Flash (Week)" -v Byte -l 0 -b 1024 -s -1week DEF:du=/var/lib/rrd/system.rrd:du-root:AVERAGE DEF:df=/var/lib/rrd/system.rrd:df-root:AVERAGE CDEF:used=du,1024,* CDEF:free=df,1024,* AREA:used#EE1111:"Used" GPRINT:used:MAX:" Max\: %3.2lf%s" GPRINT:used:AVERAGE:" Avg\: %3.2lf%S" GPRINT:used:LAST:" Current\: %3.2lf%SByte\n" STACK:free#11EE11:"Free" GPRINT:free:MAX:" Max\: %3.2lf%s" GPRINT:free:AVERAGE:" Avg\: %3.2lf%S" GPRINT:free:LAST:" Current\: %3.2lf%SByte" >

<RRD::GRAPH ../rrd-img/sys-df-root-month.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Free Space in Flash (Month)" -v Byte -l 0 -b 1024 -s -1month DEF:du=/var/lib/rrd/system.rrd:du-root:AVERAGE DEF:df=/var/lib/rrd/system.rrd:df-root:AVERAGE CDEF:used=du,1024,* CDEF:free=df,1024,* AREA:used#EE1111:"Used" GPRINT:used:MAX:" Max\: %3.2lf%s" GPRINT:used:AVERAGE:" Avg\: %3.2lf%S" GPRINT:used:LAST:" Current\: %3.2lf%SByte\n" STACK:free#11EE11:"Free" GPRINT:free:MAX:" Max\: %3.2lf%s" GPRINT:free:AVERAGE:" Avg\: %3.2lf%S" GPRINT:free:LAST:" Current\: %3.2lf%SByte" >

<RRD::GRAPH ../rrd-img/sys-df-root-year.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Free Space in Flash (Year)" -v Byte -l 0 -b 1024 -s -1year DEF:du=/var/lib/rrd/system.rrd:du-root:AVERAGE DEF:df=/var/lib/rrd/system.rrd:df-root:AVERAGE CDEF:used=du,1024,* CDEF:free=df,1024,* AREA:used#EE1111:"Used" GPRINT:used:MAX:" Max\: %3.2lf%s" GPRINT:used:AVERAGE:" Avg\: %3.2lf%S" GPRINT:used:LAST:" Current\: %3.2lf%SByte\n" STACK:free#11EE11:"Free" GPRINT:free:MAX:" Max\: %3.2lf%s" GPRINT:free:AVERAGE:" Avg\: %3.2lf%S" GPRINT:free:LAST:" Current\: %3.2lf%SByte" >