hotsanic |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/usr/bin/env sh
. ../../settings
if [ `$BINPATH/rrdtool info rrd/proc.rrd |grep max |grep -cv NaN` -gt 0 ]; then
echo "old-style databases found, update necessary.";
# update databases if needed
#
$BINPATH/rrdtool tune rrd/proc.rrd -a procslp:U -a procrun:U -a proczmb:U -a procstp:U -a procdsc:U
fi
if [ -e rrd/loadavg.rrd ]; then
echo "old DBname detected, renaming..."
mv -f rrd/loadavg.rrd rrd/load.rrd
cd ../..
./makeindex.pl
fi