Changeset 1218
- Timestamp:
- 03/09/10 05:38:49 (2 years ago)
- Location:
- trunk/unxsBind
- Files:
-
- 2 modified
-
interfaces/thit/bind9-genstats.sh (modified) (3 diffs)
-
setup9/root-crontab (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsBind/interfaces/thit/bind9-genstats.sh
r293 r1218 1 1 #!/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 2 10 3 11 4 12 #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 16 fLog() { echo "`date +%b' '%d' '%T` $0[$$]: $@"; } 17 6 18 7 19 #Configure … … 15 27 RNDC_RET=$?; 16 28 if [ $RNDC_RET -ne 0 ]; then 17 echo"Error running $RNDC:$RNDC_RET";29 fLog "Error running $RNDC:$RNDC_RET"; 18 30 exit $RNDC_RET; 19 31 fi … … 23 35 THIT_RET=$?; 24 36 if [ $THIT_RET -ne 0 ]; then 25 echo"Error running $THIT:$THIT_RET";37 fLog "Error running $THIT:$THIT_RET"; 26 38 exit $THIT_RET; 27 39 fi -
trunk/unxsBind/setup9/root-crontab
r293 r1218 5 5 # 6 6 #Dual master configuration 7 * * * * * /var/www/unxs/cgi-bin/iDNS.cgi ProcessJobQueue ns1.yourdomain.com >> /var/log/ idns-cron.log 2>&17 * * * * * /var/www/unxs/cgi-bin/iDNS.cgi ProcessJobQueue ns1.yourdomain.com >> /var/log/unxsbindlog 2>&1 8 8 9 9 #iDNS tHit subsystem 10 */5 * * * * /usr/sbin/bind9-genstats.sh >> /var/log/ idns-cron.log 2>&110 */5 * * * * /usr/sbin/bind9-genstats.sh >> /var/log/unxsbindlog 2>&1 11 11 # 12 12 #iDNS graphs
