jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [system/] [update] - Rev 27 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

# 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

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