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 #1507: New optional parse_function for check API

ComponentCore & Setup
TitleNew optional parse_function for check API
Date2014-11-05 14:20:30
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.6b1
LevelProminent Change
ClassNew Feature
CompatibilityCompatible - 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.