Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 1507
blob2fccd1fd50eb8daf4f1022e14b8617d4a378582a
1 Title: New optional parse_function for check API
2 Level: 2
3 Component: core
4 Compatible: compat
5 Version: 1.2.6b1
6 Date: 1415193630
7 Class: feature
9 When developing your own checks you sometimes need to deal
10 with more complex agent output that needs first to be parsed
11 before that actual inventory or check logic can begin to do
12 its works. Many checks therefore have something like a parse
13 function. Now you can define a <tt>"parse_function"</tt> in
14 the <tt>check_info</tt>. If you do that, then all agent
15 output (the parameter <tt>info</tt>) will always be processed
16 by that function before it is passed to the inventory or
17 check function.
19 Note: this is also a performance benefit since the parsing
20 needs now only be done once and not again for each single
21 check item.
23 Please refer to the developer documentation for more
24 details.