Werk #1507: New optional parse_function for check API
|Component||Core & setup|
|Title||New optional parse_function for check API|
|Date||Nov 5, 2014|
|Checkmk Editon||Checkmk Raw (CRE)|
|Compatibility||Compatible - no manual interaction needed|
When developing your own checks you sometimes need to deal with more complex agent output that needs first to be parsed before that actual inventory or check logic can begin to do its works. Many checks therefore have something like a parse function. Now you can define a "parse_function" in the check_info. If you do that, then all agent output (the parameter info) will always be processed by that function before it is passed to the inventory or check function.
Note: this is also a performance benefit since the parsing needs now only be done once and not again for each single check item.
Please refer to the developer documentation for more details.