hotsanic |
Subversion Repositories: |
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 86400 -b -2years\
DS:rc5:GAUGE:864000:0:U \
DS:ogr:GAUGE:864000:0:U \
DS:csc:GAUGE:864000:0:U \
DS:des:GAUGE:864000:0:U \
RRA:AVERAGE:0:1:1000 \
RRA:AVERAGE:0.3:7:1000 \
RRA:AVERAGE:0.3:30:1000 \
RRA:MIN:0.3:7:1000 \
RRA:MIN:0.3:30:1000 \
RRA:MAX:0.3:7:1000 \
RRA:MAX:0.3:30:1000
fi