diff options
Diffstat (limited to 'tests/rrdtool')
-rw-r--r-- | tests/rrdtool | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rrdtool b/tests/rrdtool new file mode 100644 index 0000000..96ca3da --- /dev/null +++ b/tests/rrdtool @@ -0,0 +1,15 @@ +FILENAME="rrdtool-test" + 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 -R $@ |