1 | 1 | simandl | #!/usr/bin/env sh |
2 | | | |
3 | | | . ../../settings |
4 | | | |
5 | | | DEV=$1 |
6 | | | |
7 | | | SECS=`date +%s` |
8 | | | |
9 | | | MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` |
10 | | | |
11 | | | if [ "$DEV" = "" ] ; then echo "argument missing!" ; else |
12 | | | |
13 | | | echo $SECS $MODNAME: setting up database $DEV.rrd |
14 | | | |
15 | | | $BINPATH/rrdtool create rrd/$DEV.rrd --step 86400 -b -2years\ |
16 | | | DS:rc5:GAUGE:864000:0:U \ |
17 | | | DS:ogr:GAUGE:864000:0:U \ |
18 | | | DS:csc:GAUGE:864000:0:U \ |
19 | | | DS:des:GAUGE:864000:0:U \ |
20 | | | RRA:AVERAGE:0:1:1000 \ |
21 | | | RRA:AVERAGE:0.3:7:1000 \ |
22 | | | RRA:AVERAGE:0.3:30:1000 \ |
23 | | | RRA:MIN:0.3:7:1000 \ |
24 | | | RRA:MIN:0.3:30:1000 \ |
25 | | | RRA:MAX:0.3:7:1000 \ |
26 | | | RRA:MAX:0.3:30:1000 |
27 | | | |
28 | | | fi |
29 | | | |