• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Nov-2011-

READMEH A D26-Feb-20021.8 KiB6036

dns.namedH A D26-Feb-2002390 1916

dns_mrtgH A D26-Feb-2002184 62

mrtg.cfgH A D26-Feb-2002658 2422

stat.plH A D26-Feb-20024.8 KiB17066

README

1# $Id: README,v 1.1.1.1 2002/02/26 10:16:37 oetiker Exp $
2
3stat.pl
4
5    You could use this script to monitor youre DNS activities.
6    Its a very simple perl script and youre free to do any updates on
7    it, but please send a copy to me calle@volvo.se.
8    you have to do some small changes like hostname and path to named.stats.
9    if youre using it please let me know so i could send you updates.
10
11
12INSTALLATION:
13
14    To get it to work do execute the script once before you make mrtg to do
15    it for you. This will make an OLD file with the last requested queries.
16    You might get an error messages , but the next time you execute it the
17    stats will come as you want it.
18
19
20
21USAGE:
22
23    If you run this on a DNS server just add an script that will make a stat
24    file (Bind 4 (kill -ABRT `/var/run/named.pid`)),
25    (Bind 8.1. (kill -ILL `/var/run/named.pid)) and remove the old named.stats.
26    and put this into cron.
27    For Bind 8.2.1 you will need to be using ndc (ndc stats).
28
29    ex. script to run from cron
30
31    #!/bin/sh
32    rm /var/tmp/named.stats
33    kill -ABRT `cat /var/run/named.pid`
34    <PATH to MRTG>/mrtg  <PATH to mrtg.cfg>
35
36
37MRTG:
38
39    To set up this in MRTG:
40    Target[dns]: `/<PATH to stat.pl>/stat.pl`
41
42REMOTE:
43   I did a small script called dns.named that will collect named from a
44   remote DNS, but i strongly recomend to rewrite this so instead of using
45   FTP use scp.
46   this script requires expect.
47
48
49UPDATES:
50
51   The new stat.pl you could use 2 diffrent graph in one session , that is lets say you want to
52   logg all Requested queries and maybe count of zone transfers.
53   all you have to do is to specify these in $OUTGOING and $INCOMING in stat.pl.
54   The script also looks how for how long the named have been runing without a reset.
55
56
57
58
59
60