jablonka.czprosek.czf

hotsanic

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

Compare with Previous - Blame - Download


#!/bin/sh

. ../../settings

DEV=routing
MAX=50000

SECS=$(date +%s)

if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else

  echo $SECS PORTS: 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 \
                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
fi


Powered by WebSVN 2.2.1