jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [crusader/] [makerrd] - Blame information for rev 11

 

Line No. Rev Author Line
111simandl#!/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:rate:GAUGE:300:U:$MAX \
18 DS:quality:GAUGE:300:U:$MAX \
19 DS:signal:GAUGE:300:U:$MAX \
20 DS:noise:GAUGE:300:U:$MAX \
21 RRA:AVERAGE:0:1:720 \
22 RRA:AVERAGE:0.3:6:2880 \
23 RRA:AVERAGE:0.3:60:2016 \
24 RRA:AVERAGE:0.3:360:1488 \
25 RRA:AVERAGE:0.3:4320:1460 \
26 RRA:MAX:0.3:6:2880 \
27 RRA:MAX:0.3:60:2016 \
28 RRA:MAX:0.3:360:1488 \
29 RRA:MAX:0.3:4320:1460
30 fi

Powered by WebSVN 2.2.1