jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [modules/] [system/] [update] - Rev 8 Go to most recent revision

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


Powered by WebSVN 2.2.1