#!/bin/bash RRDTOOL=/usr/bin/rrdtool STATSDIR=/var/www/wan-stats/ $RRDTOOL create "net.rrd" --step 300 \ DS:eth0in:GAUGE:1200:U:U \ DS:eth0out:GAUGE:1200:U:U \ DS:eth1in:GAUGE:1200:U:U \ DS:eth1out:GAUGE:1200:U:U \ RRA:AVERAGE:0.5:1:288 \ RRA:AVERAGE:0.5:1:2016 mv -f "net.rrd" $STATSDIR