![]() ![]() |
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 in:COUNTER -d out:COUNTERdonefi