![]() ![]() |
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 msrefused` -eq 0 ]; thenecho "old-style databases found, update necessary.";# update databases if needed#FILES=`ls rrd`for nn in $FILES; doecho "updating $nn"$BINPATH/rrdtool dump rrd/$nn | ../../tools/rrdtool_add_ds.pl 1 nan GAUGE > rrd/temp.xml$BINPATH/rrdtool restore rrd/temp.xml rrd/temp.rrdrm -f rrd/temp.xml$BINPATH/rrdtool tune rrd/temp.rrd -r refused:crefused -r ds1:msrefusedmv -f rrd/temp.rrd rrd/$nndonefi