This Check_MK extension triggers rndc stats command on a BIND nameserver, parses the statistics file and generates Metrics out of the statistics file. For each execution the statistics file is moved to <stast_file>.old.
For most of the values in the rndc statistics file a Metric is created.
The plugin was tested against output of a bind 9.11 running on CentOS 8.
The extension was inspired by philpep's bind plugin. But it is a complete rewrite of the plugin for CK 2.0.
The development was done on behalf of WAGNER AG in Kirchberg, Switzerland.
Feel free to contribute and extend this extension.
For the plugin development jiuka's brilliant checkmk_template was used.
For the best development experience use VSCode with the Remote Containers extension. This maps your workspace into a checkmk docker container giving you access to the python environment and libraries the installed extension has.
The following directories in this repo are getting mapped into the Checkmk site.
agents,checkman,checks,doc,inventory,notifications,webare mapped intolocal/share/check_mk/agent_basedis mapped tolocal/lib/check_mk/base/plugins/agent_based
To build the package hit Crtl+Shift+B to execute the build task in VSCode.
pytest can be executed from the terminal or the test ui.
The provided Github Workflows run pytest and flake8 in the same checkmk docker container as vscode.