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

## system statistics

<RRD::GRAPH ../rrd-img/sys-load-day.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Load Average (Number of Processes in Run Queue) (Day)" -v Number -u 1 DEF:l=/var/lib/rrd/system.rrd:load:AVERAGE AREA:l#11EE11:"Load" LINE1:l#009900 GPRINT:l:MAX:" Max\: %3.2lf" GPRINT:l:AVERAGE:" Avg\: %3.2lf" GPRINT:l:LAST:" Current\: %3.2lf">

<RRD::GRAPH ../rrd-img/sys-load-week.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Load Average (Number of Processes in Run Queue) (Week)" -v Number -u 1 -s -1week DEF:l=/var/lib/rrd/system.rrd:load:AVERAGE AREA:l#11EE11:"Load" LINE1:l#009900 GPRINT:l:MAX:" Max\: %3.2lf" GPRINT:l:AVERAGE:" Avg\: %3.2lf" GPRINT:l:LAST:" Current\: %3.2lf">

<RRD::GRAPH ../rrd-img/sys-load-month.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Load Average (Number of Processes in Run Queue) (Month)" -v Number -u 1 -s -1month DEF:l=/var/lib/rrd/system.rrd:load:AVERAGE AREA:l#11EE11:"Load" LINE1:l#009900 GPRINT:l:MAX:" Max\: %3.2lf" GPRINT:l:AVERAGE:" Avg\: %3.2lf" GPRINT:l:LAST:" Current\: %3.2lf">

<RRD::GRAPH ../rrd-img/sys-load-year.png --imginfo '<IMG SRC=/rrd-img/%s WIDTH=%lu HEIGHT=%lu >' --lazy -i -a PNG --title="Load Average (Number of Processes in Run Queue) (Year)" -v Number -u 1 -s -1year DEF:l=/var/lib/rrd/system.rrd:load:AVERAGE AREA:l#11EE11:"Load" LINE1:l#009900 GPRINT:l:MAX:" Max\: %3.2lf" GPRINT:l:AVERAGE:" Avg\: %3.2lf" GPRINT:l:LAST:" Current\: %3.2lf">