Show
Ignore:
Timestamp:
03/09/10 05:38:49 (2 years ago)
Author:
Gary
Message:

unxsBind updating for new unxsVZ standard logging.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/unxsBind/interfaces/thit/bind9-genstats.sh

    r293 r1218  
    11#!/bin/bash 
     2 
     3# 
     4#FILE 
     5#       unxsBind/agents/thit/bind9-genstats.sh 
     6#PURPOSE 
     7#       Gather DNS statistics via rndc, named-stats and then run our own 
     8#       /usr/sbin/tHitCollector to parse and place data in MySQL db. 
     9#NOTES 
    210 
    311 
    412#Place next line in root crontab for iDNS tHit subsystem 
    5 #*/5 * * * * /usr/sbin/bind9-genstats.sh >> /var/log/idns-cron.log 2>&1 
     13#*/5 * * * * /usr/sbin/bind9-genstats.sh >> /var/log/unxsbindlog 2>&1 
     14 
     15#unxsVZ standard log format 
     16fLog() { echo "`date +%b' '%d' '%T` $0[$$]: $@"; } 
     17 
    618 
    719#Configure 
     
    1527RNDC_RET=$?; 
    1628if [ $RNDC_RET -ne 0 ]; then 
    17         echo "Error running $RNDC:$RNDC_RET"; 
     29        fLog "Error running $RNDC:$RNDC_RET"; 
    1830        exit $RNDC_RET; 
    1931fi 
     
    2335THIT_RET=$?; 
    2436if [ $THIT_RET -ne 0 ]; then 
    25         echo "Error running $THIT:$THIT_RET"; 
     37        fLog "Error running $THIT:$THIT_RET"; 
    2638        exit $THIT_RET; 
    2739fi