# $Id: README,v 1.1 1999/04/28 11:17:19 v072863 Exp $

stat.pl
    
    You could use this script to monitor youre DNS activities.
    Its a very simple perl script and youre free to do any updates on
    it, but please send a copy to me calle@volvo.se.
    you have to do some small changes like hostname and path to named.stats.
    if youre using it please let me know so i could send you updates.


INSTALLATION:
    
    To get it to work do execute the script once before you make mrtg to do
    it for you. This will make an OLD file with the last requested queries.
    You might get an error messages , but the next time you execute it the
    stats will come as you want it.



USAGE:
    
    If you run this on a DNS server just add an script that will make a stat
    file (Bind 4 (kill -ABRT `/var/run/named.pid`)), 
    (Bind 8 (kill -ILL `/var/run/named.pid)) and remove the old named.stats.
    and put this into cron.
    
    ex. script to run from cron

    #!/bin/sh
    rm /var/tmp/named.stats
    kill -ABRT `cat /var/run/named.pid`
    <PATH to MRTG>/mrtg  <PATH to mrtg.cfg>


MRTG:
    
    To set up this in MRTG:
    Target[dns]: `/<PATH to stat.pl>/stat.pl`

REMOTE:
   I did a small script called dns.named that will collect named from a
   remote DNS, but i strongly recomend to rewrite this so instead of using
   FTP use scp.
   this script requires expect.

   
 

 
     
Calle Olsen <calle@volvo.se>
