apk_add $@ # Create DB rrdtool create ${FILENAME}.rrd --step 1 DS:eth0r:COUNTER:120:0:U \ RRA:AVERAGE:0.5:1:3600 RRA:MAX:0.5:1:3600 # Create graphics rrdtool graph ${FILENAME}.png --start -3600 -a PNG \ -t "Testgraphics" -M \ DEF:eth0r=${FILENAME}.rrd:eth0r:AVERAGE \ VDEF:eth0ra=eth0r,AVERAGE VDEF:eth0rm=eth0r,MAXIMUM \ VDEF:eth0rc=eth0r,LAST \ COMMENT:" Avarage Maximum Current per second\n" \ "AREA:eth0r#00dd00:Receive " GPRINT:eth0ra:"%12.3lf %sb" \ GPRINT:eth0rm:"%12.3lf %sb" > /dev/null apk_del $@