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
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p15 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

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