[dns-operations] [EXT] Monitoring DNS BIND with SNMP ?

Tony Finch dot at dotat.at
Tue Nov 12 18:27:14 UTC 2019


Jake Zack <jake.zack at cira.ca> wrote:
>
> 1)      Perl script runs…
>
> a.       Reads in last intervals query number total
>
> b.       Runs ‘rndc stats’
>
> c.       Reads in this intervals query number total
>
> d.  Subtracts one from the other (you need to handle BIND restarts,
> though.  If $current < $last then disregard…otherwise it makes graphs
> useless due to insane values)
>
> e.       Saves this intervals delta to a file

I use the statistics server for this: it is less janky than reading the
statistics file and can be fetched remotely. The output from
http://server:8053/json/v1/server is about 10KB and usually has the info I
need, e.g. opcodes.QUERY, nsstats.QryTCP, nsstats.QryUDP, boot-time (for
detecting restarts).

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/
harness technological change to human advantage


More information about the dns-operations mailing list