We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #1425: New section header option 'encoding' for agent output

ComponentCore & Setup
TitleNew section header option "encoding" for agent output
Date2014-10-27 15:44:40
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.5i6
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

If you write your own check plugins you might know that a section header can contain additional options separated by a colon. For example:

For section headers of agent outputs an additional option encoding has been introduced. Generally all check plugins should output valid UTF-8 encoded text. In some instances this is not possible, because the plugin itself has its own hardcoded encoding. With the encoding option you can specify the encoding for this entire section. Check_MK will then decode the given section output and recode it into UTF-8 for further processing. Example:

<<<win_foobar:encoding(cp1252)>>>

You find a list of all available encoding here.