[Unbound-users] unbound statistics for qtype with num=0 ?

W.C.A. Wijngaards wouter at NLnetLabs.nl
Thu Apr 7 06:58:13 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paul,

On 04/06/2011 09:48 PM, Paul Wouters wrote:
> 
> Hi,
> 
> I noticed when you run unbound-control stats you see something like:
> 
> num.query.type.A=319
> num.query.type.NS=2
> num.query.type.PTR=102
> num.query.type.MX=6
> num.query.type.TXT=32
> num.query.type.AAAA=81
> num.query.type.SRV=3
> num.query.type.SPF=2
> 
> Note that for any query type that has not been asked (the num is 0) this is not
> displayed. This leads to somewhat unexpected "unprocessed" rrd files. I don't think
> this really matters, but it is somewhat confusing.
> 
> Looking through daemon/stats.c I did not see where this behaviour of not printing
> the types with 0 hits comes from. I'd like to print those are 0's to keep them in
> the rrdtool/munin graphs.

Unbound does not print type=0, at daemon/remote.c:760

You can also, maybe better, solve this at the munin script, in
unbound_munin_ at if $1=="config" and then the by_type)) p_config .. ;;
where you have the  for x in `grep "^num.query.type" $state`; do ;;
which you want to be a full list.

> I noticed this while chasing down some munin-graphs that were hanging after what
> seemed to be the unlinking of the lock file. Did anyone else see this behaviour
> of munin-graph eating up 99% cpu? 

Best regards,
   Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk2dYIUACgkQkDLqNwOhpPjAoACfR9/86tlYIJXUeE3gkK/iUfXN
tFgAmwZc6KUySSNlzGbRDI4BXD9U2YaP
=Wfaj
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list