jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [routing2/] [makerrd] - Rev 23 Go to most recent revision

Compare with Previous - Blame - Download


#!/usr/bin/env sh

. ../../settings

DEV=routing2
MAX=50000
SECS=`date +%s`

MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`

echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX]

$BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \
        DS:all:GAUGE:300:U:$MAX \
        DS:routers:GAUGE:300:U:$MAX \
        DS:cloud:GAUGE:300:U:$MAX \
        DS:default:GAUGE:300:U:$MAX \
        DS:ra:GAUGE:300:U:$MAX \
        DS:rb:GAUGE:300:U:$MAX \
        DS:rc:GAUGE:300:U:$MAX \
        DS:rd:GAUGE:300:U:$MAX \
        DS:re:GAUGE:300:U:$MAX \
        DS:rf:GAUGE:300:U:$MAX \
        DS:rg:GAUGE:300:U:$MAX \
        RRA:AVERAGE:0:1:720 \
        RRA:AVERAGE:0.3:6:2880 \
        RRA:AVERAGE:0.3:60:2016 \
        RRA:AVERAGE:0.3:360:1488 \
        RRA:AVERAGE:0.3:4320:1460 \
        RRA:MAX:0.3:6:2880 \
        RRA:MAX:0.3:60:2016 \
        RRA:MAX:0.3:360:1488 \
        RRA:MAX:0.3:4320:1460

Powered by WebSVN 2.2.1