#!/usr/bin/env sh
. ../../settings
FIRSTFILE=`ls rrd/|head -n 1`
if [ `$BINPATH/rrdtool info rrd/$FIRSTFILE|grep -c GAUGE` -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 --data-source-type success:COUNTER --data-source-type referral:COUNTER --data-sourc e-type nxrrset:COUNTER --data-source-type  nxdomain:COUNTER --data-source-type     recursion:COUNTER --data-source-type      failur e:COUNTER 
    done
  fi
   
      
       
      
      
      
      
      
         WebSVN
            - hotsanic
            - Blame
               - Rev 33
            - /branches/HotSaNIC-0.5.0-pre6/modules/bind/update
      
      
	
	
  
    | hotsanic | Subversion Repositories: | 
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [modules/] [bind/] [update] - Blame information for rev 33
 
 
      Powered by WebSVN 2.2.1