#!/bin/bash rrdtool graph gastest.png -w 800 -h 500 -s 'now - 1 day' -e 'now' DEF:gas=energy.rrd:gas:AVERAGE LINE2:gas#204a87:"Gas Liter"