Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QryRTT resolvercounter are not calculated anymore with latest bind version #10

Open
ybrock opened this issue Jan 7, 2020 · 3 comments

Comments

@ybrock
Copy link

ybrock commented Jan 7, 2020

Hi,

I was using this template and I loved the Query Round Trip Time graph.
Since the last update of Bind (on EL7 here), the QryRTT* counters have all 0 in the JSON file /tmp/bindstats.json, but the counters are Ok in the XML file

In the JSON File :
"QryRTT10": "0",
"QryRTT100": "0",
"QryRTT500": "0",
"QryRTT800": "0",
"QryRTT1600": "0",
"QryRTT1600+": "0",

In the HTML/XML file 👍 110065252
30438688
3003133
45595
9004
21

The version of Bind has been updated from 9.9.4 to 9.11.4 (bind-9.11.4-9.P2.el7.x86_64 actually).

There is probably a small bug in bind-stats.py but I can't find it !

Cheers
Yvan

@ybrock
Copy link
Author

ybrock commented Jan 7, 2020

  <counter name="QryRTT10">110065252</counter>
  <counter name="QryRTT100">30438688</counter>
  <counter name="QryRTT500">3003133</counter>
  <counter name="QryRTT800">45595</counter>
  <counter name="QryRTT1600">9004</counter>
  <counter name="QryRTT1600+">21</counter>

Sorry, the XML was interpreted by github. This is what is found in the HTML/XML file

@ybrock
Copy link
Author

ybrock commented Jan 8, 2020

Between Bind 9.9 and Bind 9.11 the statistics version have changed :
Version 2.2 for Bind 9-9
Version 3.8 for Bind 9.11

The processing of Version 3 statistics is quite different in the python script.
I have narrowed down the issue to a view problem :
resqtype (outcounter), resstats (resolvercounter) and cachestats (cache) statistics are all wrong, because they are calculed from the view named "_bind", instead of beeing computed from the view "_default", this is why the values appears with a wrong value, often "0".

I'm not really good with Python XML parsing, I'm still trying to fix, from line 130, to be sure we're in the _default view, like it was done in v2 stats.

@zceigler-n
Copy link

@ybrock any luck with this? Currently running into the same issue with views

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants