jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [modules/] [worms/] [makerrd] - Blame information for rev 4

 

Line No. Rev Author Line
11simandl#!/usr/bin/env sh
2 
3. ../../settings
4 
5DEV=$1
6 
7SECS=`date +%s`
8 
9MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
10 
11if [ "$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 900 -b -2years\
16 DS:hits:GAUGE:9000:0:U \
17 RRA:AVERAGE:0:1:2880 \
18 RRA:AVERAGE:0.7:10:2016 \
19 RRA:AVERAGE:0.7:60:1488 \
20 RRA:AVERAGE:0.7:720:1460 \
21 RRA:MIN:0.7:10:2016 \
22 RRA:MIN:0.7:60:1488 \
23 RRA:MIN:0.7:720:1460 \
24 RRA:MAX:0.7:10:2016 \
25 RRA:MAX:0.7:60:1488 \
26 RRA:MAX:0.7:720:1460
27 fi
28 
29# 2d = 48h -> 2880 Werte alle 60sec
30# 2w = 14d -> 2016 Werte alle 10min (10*60sec)
31# 2m = 62d -> 1488 Werte alle 1h (60*60sec)
32# 2y = 730d -> 1460 Werte alle 12h (720*60sec)
33 

Powered by WebSVN 2.2.1