#!/usr/bin/env sh . ../../settings FIRSTFILE=`ls rrd/|head -n 1` if [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep -c ABSOLUTE` -gt 0 ]; then echo "old-style databases found, update necessary."; # update databases if needed # FILES=`ls rrd` for nn in $FILES; do echo "updating $nn" $BINPATH/rrdtool tune rrd/$nn -d in:COUNTER -d out:COUNTER done fi # recompile read-data.pl if needed # if [ read-data.pl -nt read-data ]; then echo "script update detected, recompiling..." rm -f read-data perlcc read-data.pl fi
hotsanic |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|