Learn more about the latest product updates at the Checkmk Conference #12 – live from June 16-17! Watch here

Werk #19607: Product usage analytics: Stray files can no longer shadow the CLI tool

Component Setup
Title Product usage analytics: Stray files can no longer shadow the CLI tool
Date Jun 3, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0p6 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

Previously, the cmk-product-usage command line tool could be disrupted by an unrelated file in the site home directory ($OMD_ROOT). If such a file happened to share a name with one of the modules the tool imports, it could be loaded instead of the correct Checkmk module, causing the tool to fail or behave unexpectedly. This has been fixed: files in the site home directory are now ignored, and only the modules shipped with Checkmk are used.

Technical background

The tool used to be started via python3 -m cmk.product_usage_cli, which puts the current working directory - typically the site home directory - at the front of Python's module search path. The entry point now lives inside the cmk.product_usage package and is executed as a script, so the working directory is no longer searched first.

To the list of all Werks