Explore the latest product updates and best practices at our hybrid Checkmk Conference #12 from June 16-18, 2026 – Register here

Werk #18694: mk_job: use environment MK_VARDIR value if set

Component Checks & agents
Title mk_job: use environment MK_VARDIR value if set
Date Oct 22, 2025
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.5.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.4.0p15 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

Previously, the mk-job script always redefined the MK_VARDIR variable at the beginning of execution.

The script will now use the existing MK_VARDIR environment variable if it is set. If the variable is not set, the script will fall back to its default, hard-coded value.

This werk is flagged as potentially incompatible because it alters how the script uses MK_VARDIR. Customers who previously relied on the script overwriting a value should verify their setup to ensure the script now executes under the desired conditions.

To the list of all Werks