Code

initial
[rrdtool-all.git] / tutorial / ouce2013 / rrd-by-example / ex / create-first.sh
diff --git a/tutorial/ouce2013/rrd-by-example/ex/create-first.sh b/tutorial/ouce2013/rrd-by-example/ex/create-first.sh
new file mode 100755 (executable)
index 0000000..b7713d7
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+PATH=/scratch/rrd4/bin:$PATH
+R=rrdtool
+$R create first.rrd \
+   --step=300 \
+   --start=1199999699 \
+   DS:temperature:GAUGE:600:-40:100 \
+   RRA:AVERAGE:0.4:1:5 \
+   RRA:AVERAGE:0.4:3:2 \
+   RRA:MIN:0.4:3:2 \
+   RRA:MAX:0.4:3:2
+
+
+#!/bin/sh
+R=rrdtool
+u(){
+ $R update first.rrd $1
+}
+
+u 1199999700:00 
+u 1200000000:10
+u 1200000300:20
+u 1200000600:30
+u 1200000900:40
+
+
+$R dump first.rrd