Skip to content

WagnerAG/checkmk_bind_stats

Repository files navigation

Check_MK extension for monitoring ISC BINDs statistic

build lint pytest

Description

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.

Credits

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.

Development

Feel free to contribute and extend this extension.

For the plugin development jiuka's brilliant checkmk_template was used.

Setup

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.

Directories

The following directories in this repo are getting mapped into the Checkmk site.

  • agents, checkman, checks, doc, inventory, notifications, web are mapped into local/share/check_mk/
  • agent_based is mapped to local/lib/check_mk/base/plugins/agent_based

Continuous integration

Local

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.

Github Workflow

The provided Github Workflows run pytest and flake8 in the same checkmk docker container as vscode.

About

Checkmk plugin for monitoring rndc stats

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors