How to calculate the number of queries

Chris Pile cpile at snoogans.co.uk
Thu Jan 10 09:10:40 UTC 2002


I have written a script to parse BIND9 stats.

http://www.snoogans.co.uk/files/rndcstats.pl

I realise now I have missed out the recursion stat, but I have been updating my script
considerably recently and will release that once I have access to my CVS again.
Hopefully released early next week.

The new/updated version will support zone-statistics too.
Plus it is coded slightly better and displays the stats using a different layout.

The new version output will be like:

  $ ./rndcstats.pl
  rndc: stats command successful

  STATS BREAKDOWN OF "/var/log/named.stats"
  stats since: Wed Jan  9 13:07:34 2002 (2009s ago)

  MAIN SERVER:
  Type             Queries   Total/sec
  ------------------------------------
  success:           39907      19.864
  referral:           5769       2.872
  nxrrset:            2310       1.150
  nxdomain:           6553       3.262
  recursion:          4062       2.022
  failure:            1478       0.736
  ------------------------------------
  Totals:            60079      29.905


  ZONES:
       success    referral     nxrrset    nxdomain     failure       total   total/sec  zone
  ----------------------------------------------------------------------------------------------
          7327           0         146         273           0        7746       3.856  foo.net
          5472           0         308          20           0        5800       2.887  foo.co.uk
          3791           0          29          48           0        3868       1.925  foo.bar.net
           425           0           0           8           0         433       0.216  1.168.192.in-addr.arpa
           407           0           5           0           0         412       0.205  foo.bar.com
           350           0           7           0           0         357       0.178  foo.bar.co.uk
  ----------------------------------------------------------------------------------------------
       success    referral     nxrrset    nxdomain     failure       total   total/sec  zone



Thanks,
Chris.


More information about the bind-users mailing list