forked from marcsowen/docsis-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_rrds.sh
executable file
·28 lines (26 loc) · 969 Bytes
/
create_rrds.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
freqs="138000000 146000000 154000000 162000000 602000000 618000000 626000000 642000000 650000000 658000000 666000000 674000000 682000000 690000000 698000000 706000000 714000000 722000000 730000000 738000000 746000000 754000000 762000000 770000000 778000000 786000000 794000000 802000000 810000000 818000000 826000000 834000000"
for freq in $freqs; do
rrdtool create $freq.rrd --step 600 \
DS:bandwidth:GAUGE:1050:0:U \
RRA:MIN:0.5:1:144 \
RRA:MIN:0.5:3:336 \
RRA:MIN:0.5:12:372 \
RRA:MIN:0.5:144:366 \
RRA:MIN:0.5:288:732 \
RRA:MAX:0.5:1:144 \
RRA:MAX:0.5:3:336 \
RRA:MAX:0.5:12:372 \
RRA:MAX:0.5:144:366 \
RRA:MAX:0.5:288:732 \
RRA:AVERAGE:0.5:1:144 \
RRA:AVERAGE:0.5:3:336 \
RRA:AVERAGE:0.5:12:372 \
RRA:AVERAGE:0.5:144:366 \
RRA:AVERAGE:0.5:288:732 \
RRA:LAST:0.5:1:144 \
RRA:LAST:0.5:3:336 \
RRA:LAST:0.5:12:372 \
RRA:LAST:0.5:144:366 \
RRA:LAST:0.5:288:732
done