Rev 1 |
|
Rev 22 |
Line 8... |
|
Line 8... |
SECS=`date +%s` |
|
SECS=`date +%s` |
|
|
|
MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` |
|
MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` |
|
|
|
if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else |
|
if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else |
|
|
|
|
|
DEV=`echo $1 | sed -e "s/\//-/g" | sed -e "s/-/-/g"` |
|
|
|
echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX] |
|
echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX] |
|
|
|
$BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \ |
|
$BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \ |
DS:in:COUNTER:300:0:$MAX \ |
|
DS:in:COUNTER:300:0:$MAX \ |