Checkmk Dev Tools

2.2.0 · active · verified Thu Apr 16

Checkmk Dev Tools is a collection of helper scripts designed for developers working with Checkmk. It provides various utilities to streamline development workflows for Checkmk and related projects. The current version is 2.2.0, and it generally follows the Checkmk project's release cadence, with updates often tied to Checkmk major and patch releases.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to interact with a hypothetical command-line tool from the `checkmk-dev-tools` package using Python's `subprocess` module. Since the package consists of scripts, direct Python imports are not the standard usage. Users are expected to add the installed scripts to their system's PATH and execute them directly.

# Example: Assuming 'cmk-dev-install' is one of the scripts installed and available in PATH
import subprocess
import os

# Note: The actual tools and their arguments depend on the specific scripts
# within the checkmk-dev-tools package and their intended functionality.
# This is a generic example demonstrating how to execute a command-line tool.

# Example of executing a hypothetical 'cmk-dev-info' tool to get version info
# You might need to adjust the command based on actual tools in the package.
try:
    result = subprocess.run(['cmk-dev-install', '--help'], capture_output=True, text=True, check=True)
    print("cmk-dev-install --help output:\n", result.stdout)
except FileNotFoundError:
    print("Error: 'cmk-dev-install' command not found. Ensure checkmk-dev-tools is installed and in PATH.")
except subprocess.CalledProcessError as e:
    print(f"Error executing command: {e}")
    print(f"Stderr: {e.stderr}")

view raw JSON →