From 64b4681978630bfbe959d0d4b2b9ac01157be4c7 Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Fri, 18 Mar 2022 20:23:35 +0000 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 42d86f1..1b848b6 100644 --- a/README.md +++ b/README.md @@ -97,14 +97,15 @@ Don't forget to make the Linux script executable (`chmod a+x curl.sh`). The bakrey will dynamicly create some additional files in the _curl_ sub directory under the check_mk agent config directory (Linux: `/etc/check_mk/curl`, Windows: `C:\ProgramData\checkmk\agent\config\curl`). **curl_item_#** equals to the second option of each line in the `curl.cfg` configuration file. -| File | Created by bakery option | -| ---- | ---- | -| curl_item_#.options | cURL options configured by the bakery | -| curl_item_#.ca_cert | Configure certificate verification -> Certificate to verify against | -| curl_item_#.header | Set request header / Set API key header | -| curl_item_#.post_binary | Send HTTP POST data | -| curl_item_#.search_header | Strings to expect in header | -| curl_item_#.search_response | Strings to expect in response | +| File | Created by bakery option | Content | +| ---- | ---- | ---- | +| curl_item_#.options | cURL options configured by the bakery | Options line by line | +| curl_item_#.ca_cert | Configure certificate verification -> Certificate to verify against | Cert(chain) as PEM | +| curl_item_#.header | Set request header / Set API key header | Header: Value line by line | +| curl_item_#.post_binary | Send HTTP POST data | Post data as binary | +| curl_item_#.regex | Regular expression to expect in content | Regex pattern to match on response | +| curl_item_#.search_header | Strings to expect in header | Strings to search for in header line by line | +| curl_item_#.search_response | Strings to expect in response | Strings to search for in response line by line | In addition to the options in `curl_item_#.options` from the bakery rules the plugin uses the hard coded options `-q -w %{json} -s -verbose --stderr $TEMP_DIR\curl_session`. If no expected strings are configured, the option `-o NUL` will be added on Windows and `-o /dev/null` on Linux. -- GitLab