1 | 1 | simandl | #!/bin/sh |
2 | | | |
3 | | | . ../../settings |
4 | | | |
5 | | | DEV=routing |
6 | | | MAX=50000 |
7 | | | |
8 | | | SECS=$(date +%s) |
9 | | | |
10 | | | if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else |
11 | | | |
12 | | | echo $SECS PORTS: setting up database $DEV.rrd for values [0..$MAX] |
13 | | | |
14 | | | $BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \ |
15 | | | DS:all:GAUGE:300:U:$MAX \ |
16 | | | DS:routers:GAUGE:300:U:$MAX \ |
17 | | | DS:cloud:GAUGE:300:U:$MAX \ |
18 | | | DS:default:GAUGE:300:U:$MAX \ |
19 | | | RRA:AVERAGE:0:1:720 \ |
20 | | | RRA:AVERAGE:0.3:6:2880 \ |
21 | | | RRA:AVERAGE:0.3:60:2016 \ |
22 | | | RRA:AVERAGE:0.3:360:1488 \ |
23 | | | RRA:AVERAGE:0.3:4320:1460 \ |
24 | | | RRA:MAX:0.3:6:2880 \ |
25 | | | RRA:MAX:0.3:60:2016 \ |
26 | | | RRA:MAX:0.3:360:1488 \ |
27 | | | RRA:MAX:0.3:4320:1460 |
28 | | | fi |
29 | | | |