Werk #1507: New optional parse_function for check API

Komponente Core & setup
Titel New optional parse_function for check API
Datum 05.11.2014
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.2.6b1
Level Bedeutende Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks