1 | 1 | simandl | #!/usr/bin/env sh |
2 | | | |
3 | | | . ../../settings |
4 | | | |
5 | | | DEV=routing2 |
6 | | | MAX=50000 |
7 | | | SECS=`date +%s` |
8 | | | |
9 | | | MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` |
10 | | | |
11 | | | echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX] |
12 | | | |
13 | | | $BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \ |
14 | | | DS:all:GAUGE:300:U:$MAX \ |
15 | | | DS:routers:GAUGE:300:U:$MAX \ |
16 | | | DS:cloud:GAUGE:300:U:$MAX \ |
17 | | | DS:default:GAUGE:300:U:$MAX \ |
18 | | | DS:ra:GAUGE:300:U:$MAX \ |
19 | | | DS:rb:GAUGE:300:U:$MAX \ |
20 | | | DS:rc:GAUGE:300:U:$MAX \ |
21 | | | DS:rd:GAUGE:300:U:$MAX \ |
22 | | | DS:re:GAUGE:300:U:$MAX \ |
23 | | | DS:rf:GAUGE:300:U:$MAX \ |
24 | | | DS:rg:GAUGE:300:U:$MAX \ |
25 | | | RRA:AVERAGE:0:1:720 \ |
26 | | | RRA:AVERAGE:0.3:6:2880 \ |
27 | | | RRA:AVERAGE:0.3:60:2016 \ |
28 | | | RRA:AVERAGE:0.3:360:1488 \ |
29 | | | RRA:AVERAGE:0.3:4320:1460 \ |
30 | | | RRA:MAX:0.3:6:2880 \ |
31 | | | RRA:MAX:0.3:60:2016 \ |
32 | | | RRA:MAX:0.3:360:1488 \ |
33 | | | RRA:MAX:0.3:4320:1460 |