Werk #15311: align quoting of synchronous and asynchronous MRPE

Component Checks & agents
Title align quoting of synchronous and asynchronous MRPE
Date Nov 20, 2023
Checkmk Version 2.3.0b1 2.2.0p15 2.1.0p37
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Affected Editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p15 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p37 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

You are affected by this change if you use asynchronous MRPE and used double quotes (") in the MRPE command.

Quoting of mrpe commands differed between cached and non cached mrpe checks.

With this Werk the quoting rules for the normal/synchronous execution of MRPE are applied to asynchronous MRPE commands.

The following can now be applied to both asynchronous and normal/synchronous execution of MRPE commands: Use single quotes on the first level of quoting.

This command will correctly show output with spaces in the Service output:

bash -c 'echo "output with spaces"'

If you execute asynchronous MRPE and the command uses double quotes on the first level of quoting, adapt it accordingly.

To the list of all Werks