Werk #1425: New section header option "encoding" for agent output
Component | Core & setup | ||
Title | New section header option "encoding" for agent output | ||
Date | Oct 27, 2014 | ||
Level | Trivial Change | ||
Class | New Feature | ||
Compatibility | Compatible - no manual interaction needed | ||
Checkmk versions & editions |
|
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.