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

Bind rndc plugin #1501

Merged
merged 4 commits into from Jan 5, 2017
Merged

Bind rndc plugin #1501

merged 4 commits into from Jan 5, 2017

Conversation

ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Jan 3, 2017

Unfortunately bind9 package in debian repository compiled without --with-libjson.

All our nameservers are debian7/debian8 and since they work well nobody will upgrade bind (compile from source with --with-libjson).

Current netdata plugins is not suitable for bind monitoring in our case. I think it is very common situation!

The old way to monitor bind is to dump named.stats and parse it (the way we do it now using munin).

The only drawback - bind append new dump to log. It is only mean you need to create logrotate conf file for it and don't set update_every to a low value.

Plugin is lightweight because it reads only the last part of dump (~ 11 Kilobyte in our case). It does not matter what file size is.

The logic is very simple:

  1. check size
  2. run 'rndc stats' to force bind to dump stats
  3. open 'named.stats', jump to prev size.
  4. parse last dump

There is a lot of information in dump but current charts only are:

  1. Stats file size (alarm to warn user if size is too big included)
  2. Name Server Statistic ( requests, response, failures, recursion and etc).

It is very easy to add more charts to it since all information is collected. But we need only Name Server Statistic and that is why i didn't add others. Will do this later.

@ktsaou ktsaou merged commit b285b13 into netdata:master Jan 5, 2017
@ktsaou
Copy link
Member

ktsaou commented Jan 5, 2017

I merged it, but I haven't tested it.
Is it ok?
Also, please remember the wiki...

@ilyam8
Copy link
Member Author

ilyam8 commented Jan 5, 2017

Is it ok?
Also, please remember the wiki...

Yes and yes.

And i remember that i need to update README

@ilyam8 ilyam8 deleted the bind_rndc_plugin branch January 6, 2017 04:14
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

Successfully merging this pull request may close these issues.

None yet

2 participants