jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [networks/] [makerrd] - Blame information for rev 36

 

Line No. Rev Author Line
11simandl#!/usr/bin/env sh
2 
3. ../../settings
4 
5DEV=$1
6MAX=$2
7 
8SECS=`date +%s`
9 
10MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11 
12if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else
13 
14 echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX]
15 
16 $BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \
17 DS:tcpin:ABSOLUTE:300:0:$MAX \
18 DS:udpin:ABSOLUTE:300:0:$MAX \
19 DS:icmpin:ABSOLUTE:300:0:$MAX \
20 DS:tcpout:ABSOLUTE:300:0:$MAX \
21 DS:udpout:ABSOLUTE:300:0:$MAX \
22 DS:icmpout:ABSOLUTE:300:0:$MAX \
23 RRA:AVERAGE:0:1:720 \
24 RRA:AVERAGE:0.3:6:2880 \
25 RRA:AVERAGE:0.3:60:2016 \
26 RRA:AVERAGE:0.3:360:1488 \
27 RRA:AVERAGE:0.3:4320:1460 \
28 RRA:MIN:0.3:6:2880 \
29 RRA:MIN:0.3:60:2016 \
30 RRA:MIN:0.3:360:1488 \
31 RRA:MIN:0.3:4320:1460 \
32 RRA:MAX:0.3:6:2880 \
33 RRA:MAX:0.3:60:2016 \
34 RRA:MAX:0.3:360:1488 \
35 RRA:MAX:0.3:4320:1460
36 
37 fi
38 
39# 2h -> 720 Werte alle 10sec
40# 2d = 48h -> 2880 Werte alle 1min (6*10sec)
41# 2w = 14d -> 2016 Werte alle 10min (60*10sec)
42# 2m = 62d -> 1488 Werte alle 1h (360*10sec)
43# 2y = 730d -> 1460 Werte alle 12h (4320*10sec)
44 

Powered by WebSVN 2.2.1