jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [modules/] [worms/] [makerrd] - Rev 4 Go to most recent revision

Compare with Previous - Blame - Download


#!/usr/bin/env sh

. ../../settings

DEV=$1

SECS=`date +%s`

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

if [ "$DEV" = "" ] ; then echo "argument missing!" ; else

  echo $SECS $MODNAME: setting up database $DEV.rrd
  
  $BINPATH/rrdtool create rrd/$DEV.rrd --step 900 -b -2years\
    DS:hits:GAUGE:9000:0:U \
    RRA:AVERAGE:0:1:2880 \
    RRA:AVERAGE:0.7:10:2016 \
    RRA:AVERAGE:0.7:60:1488 \
    RRA:AVERAGE:0.7:720:1460 \
    RRA:MIN:0.7:10:2016 \
    RRA:MIN:0.7:60:1488 \
    RRA:MIN:0.7:720:1460 \
    RRA:MAX:0.7:10:2016 \
    RRA:MAX:0.7:60:1488 \
    RRA:MAX:0.7:720:1460
  fi

# 2d = 48h  -> 2880 Werte alle 60sec 
# 2w = 14d  -> 2016 Werte alle 10min (10*60sec)
# 2m = 62d  -> 1488 Werte alle 1h    (60*60sec)
# 2y = 730d -> 1460 Werte alle 12h   (720*60sec)


Powered by WebSVN 2.2.1