Werk #1425

KomponenteCore & Setup
TitelNew section header option "encoding" for agent output
Datum2014-10-27 15:44:40
Check_MK EditionCheck_MK Raw Edition (CRE)
Check_MK Version1.2.5i6
Level1 - Trivial Change
KlasseNew Feature
KompatibilitätKompatibel- benötigt keine manuelles eingreifen

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.