MCPcopy Index your code
hub / github.com/Checkmk/ansible-collection-checkmk.general

github.com/Checkmk/ansible-collection-checkmk.general @v8.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v8.0.0 ↗ · + Follow
550 symbols 2,085 edges 68 files 58 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

drawing Checkmk Ansible Collection

Checkmk already provides the needed application programming interfaces (APIs) to automate and configure your monitoring. With this project we want to augment the experience and provide easy to use modules and roles for Ansible to both simplify your first steps with automating Checkmk and keep your daily operations smooth and efficient.

:dragon_face: Here be dragons!

This collection is provided as is, we can and will not guarantee that it works as intended, nor can we be accountable for any damage or misconfiguration done by it. Study the contents thoroughly before using it. There is no commercial support whatsoever.

This is an Open Source endeavour, on which we collaborate with the community. All fixes and support are provided by individuals in their spare time. Keep that in mind, when using the collection and interacting with this repository and the community.

:wrench: Installing this collection

Refer to INSTALL.md for detailed installation instructions.

:construction_worker: Using this collection

Refer to USAGE.md for detailed instructions on how to use this collection.

:electric_plug: Dependencies

Although the Ansible project notes, that collections should have no or very little dependencies, we want to make sure the collection works for you out of the box. Currently we only depend on very basic collections, which are most likely already installed in your environment. For version constraints, see galaxy.yml.

:bulb: Getting help

For documentation on the included modules, head over to the Galaxy, or run the following command substituting the $MODULE_NAME:

ansible-doc checkmk.general.$MODULE_NAME

For any form of support queries or requests refer to SUPPORT.md.

:toolbox: Included content

You can find playbooks, demonstrating the content of this collection in the folder playbooks/demo/.

Ansible Sanity Tests

:inbox_tray: Inventory plugins

Name Description Tests
checkmk.general.checkmk Dynamic Inventory Source for Checkmk. Ansible Unit Test for Inventory Module.

:mag: Lookup plugins

Click on the lookup plugin name below, to get detailed documentation about it. For more in-depth documentation, see this README.

Name Description Tests
checkmk.general.activation Look up the status of a single activation. Integration Tests for Activation Lookup Module
checkmk.general.activations Look up all activations. Integration Tests for Activations Lookup Module
checkmk.general.bakery Look up the status of the agent bakery. Integration Tests for bakery Lookup Module
checkmk.general.folder Look up folder attributes. Integration Tests for Folder Lookup Module
checkmk.general.folders Look up all folders. Integration Tests for Folders Lookup Module
checkmk.general.host Look up host attributes. Integration Tests for Host Lookup Module
checkmk.general.hosts Look up all hosts. Integration Tests for Hosts Lookup Module
checkmk.general.ldap_connection Look up LDAP connection attributes. Integration Tests for LDAP Connection Lookup Module
checkmk.general.ldap_connections Look up all LDAP connections. Integration Tests for LDAP Connections Lookup Module
checkmk.general.role Look up role attributes. Integration Tests for Role Lookup Module
checkmk.general.roles Look up all roles. Integration Tests for Roles Lookup Module
checkmk.general.rule Look up rule attributes. Integration Tests for Rule Lookup Module
checkmk.general.rules Look up all rules. Integration Tests for Rules Lookup Module
checkmk.general.ruleset Look up ruleset attributes. Integration Tests for Ruleset Lookup Module
checkmk.general.rulesets Look up all rulesets. Integration Tests for Rulesets Lookup Module
checkmk.general.site Look up site attributes. Integration Tests for Site Lookup Module
checkmk.general.sites Look up all sites. Integration Tests for Sites Lookup Module
checkmk.general.version Look up version and edition information. Integration Tests for Version Lookup Module

:battery: Modules

Click on the module name below, to get detailed documentation about it.

Name Description Tests
checkmk.general.activation Activate changes. Integration Tests for Activation Module
checkmk.general.aux_tag Manage auxiliary tags. Integration Tests for Aux Tag Module
checkmk.general.bakery Bake and sign agents. Integration Tests for Bakery Module
checkmk.general.contact_group Manage contact groups. Integration Tests for Contact Group Module
checkmk.general.dcd Manage Dynamic Host Management (DCD). Integration Tests for DCD Module
checkmk.general.discovery Discover services on hosts. [![Integration Tests for Discovery Module](https://github.com/Checkmk/ansible-col

Core symbols most depended-on inside this repo

get
called by 577
plugins/modules/user.py
_fetch
called by 88
plugins/module_utils/api.py
get
called by 56
plugins/module_utils/lookup_api.py
debug
called by 53
plugins/module_utils/logger.py
exit_module
called by 45
plugins/module_utils/utils.py
get
called by 28
plugins/modules/timeperiod.py
update
called by 28
plugins/modules/site.py
generate_result
called by 26
plugins/module_utils/types.py

Shape

Method 321
Function 108
Class 106
Route 15

Languages

Python100%

Modules by API surface

tests/unit/plugins/modules/test_role.py63 symbols
plugins/modules/rule.py33 symbols
plugins/modules/host.py28 symbols
plugins/modules/folder.py19 symbols
tests/unit/plugins/inventory/test_option_resolution.py18 symbols
plugins/modules/ldap.py18 symbols
plugins/modules/timeperiod.py15 symbols
plugins/modules/user.py14 symbols
plugins/module_utils/site.py14 symbols
plugins/module_utils/discovery_300.py14 symbols
plugins/module_utils/discovery_250.py14 symbols
plugins/module_utils/discovery_240.py14 symbols

For agents

$ claude mcp add ansible-collection-checkmk.general \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact