Can you manually apply a werk without updating check_mk?

Hello,

How does one go about applying a werk manually?

As an example, I am running CMK EE 2.2.0.p5 and there is a specific werk bug I am running into with the citrix_farm.ps1 piggyback checks.

# Werk #15995: citrix_state: Fix TypeError: unsupported operand type(s) for |: ‘dict’ and ‘Parameters’

citrix_state.py

Can one drop the new code from github inside /opt/omd/versions/2.2.0p5.cee/lib/python3/cmk/base/plugins/agent_based?

I ask because I tried this, and it does not seem to work, I still hit the werk bug exception: TypeError (unsupported operand type(s) for |: ‘dict’ and ‘Parameters’)

Am I missing something here?

The werk is included in 2.2.0.p7 as per the below announcement, however I am just not ready to upgrade the entire base yet, was looking for a quick fix.

[Release] Checkmk stable release 2.2.0p7 - Announcements - Checkmk Community

I forgot to restart the CMK core, worked after I did that, all good!

Although it worked, it is unsupported or commercial editions.
And you want to be careful, because this can unexpected side effects.
Also, changes to built-in files should be done by copying them to $OMD_ROOT/local/ and then the same path as the original file, then modifying it.

1 Like

Thanks Robin understood its not supported, but I reviewed the lines that were changed, and they are fairly trivial. I did not know about the local override, I’ll do that.

1 Like