![]() ![]() |
hotsanic |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/usr/bin/env sh. ../../settingsFIRSTFILE=`ls rrd/|head -n 1`if [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep -c ABSOLUTE` -gt 0 ]; thenecho "old-style databases found, update necessary.";# update databases if needed#FILES=`ls rrd`for nn in $FILES; doecho "updating $nn"$BINPATH/rrdtool tune rrd/$nn -d racc:COUNTER -d wacc:COUNTER -d rbyt:COUNTER -d wbyt:COUNTERdonefiif [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep max|grep -c NaN` -gt 0 ]; thenecho "old-style databases found, update necessary.";# update databases if needed#FILES=`ls rrd`for nn in $FILES; doecho "updating $nn"$BINPATH/rrdtool tune rrd/$nn -a racc:50000 -a wacc:50000 -a rbyt:50000000 -a wbyt:50000000donefiecho "rebuilding webpage..."cd ../.../makeindex.pl