hotsanic |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/usr/bin/env sh
. ../../settings
DEV=$1
MAX=$2
SECS=`date +%s`
MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else
echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX]
$BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \
DS:ber:GAUGE:300:U:$MAX \
DS:temp:GAUGE:300:U:$MAX \
DS:rx1:GAUGE:300:U:$MAX \
DS:snr1:GAUGE:300:U:$MAX \
DS:rx2:GAUGE:300:U:$MAX \
DS:snr2:GAUGE:300:U:$MAX \
DS:preber:GAUGE:300:U:$MAX \
DS:isi1:GAUGE:300:U:$MAX \
DS:isi2: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