Werk #12152: mk_jolokia: Error running agent plugin when deploying via agent bakery

Component Agent Bakery
Title mk_jolokia: Error running agent plugin when deploying via agent bakery
Date Mar 12, 2021
Checkmk Editon Checkmk Enterprise (CEE)
Checkmk Version 2.1.0i1 2.0.0p1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When deploying the agent plugin mk_jolokia via agent bakery, the execution of the plugin will fail, if the field "Name of the instance in the monitoring" is set within the "JMX monitoring of Java JVMs using Jolokia".

As the corresponding agent section is missing when experiencing this error, the corresponding services will change it's state to UNKNOWN. When running the mk_jolokia plugin manually, this will result in a traceback, ending with the error
TypeError: a bytes-like object is required, not 'str'

This is fixed with this Werk. The plugin and the corresponding services will be functional again when rebaking and deploying agents.

To the list of all Werks