From 7ad5c0d3f202df0b17718a0637de4fcf87046518 Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Mon, 28 Feb 2022 19:35:56 +0000 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c69f401..507d86b 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,11 @@ To use this plugin with the RAW edition of CMK you need to copy the plugin files || cert bundle | `curl-ca-bundle.crt` | `C:\ProgramData\checkmk\agent\plugins\curl-ca-bundle.crt` | |Linux| script | `curl.sh` | `/usr/lib/check_mk_agent/plugins/curl.sh` | || config | `curl.cfg` | `/etc/check_mk/curl.cfg` | +|| executable | `curl-i386` or `curl-amd64` | `/usr/lib/check_mk_agent/bin/curl` | Don't forget to make the Linux script executable (`chmod a+x curl.sh`). -*Note*: the executable and cert bundle for Windows is optional. If you don't want to use this, the plugin tryes to use the system provided crul (see: [curl shipped by Microsoft](https://curl.se/windows/microsoft.html)). +*Note*: the executables and cert are optional. If you don't want to use this, the plugin tryes to use the system provided crul (see: [curl shipped by Microsoft](https://curl.se/windows/microsoft.html)). </details> @@ -93,13 +94,13 @@ Don't forget to make the Linux script executable (`chmod a+x curl.sh`). #### Configuration file If you are not using the CheckMK agent bakery, than you need to create the config file for the plugin your self. -On each line you have the three fields _service_name_, _url_, _curl_options_. Thes fields are sepereated by `|`. There are no comments or empty lines allowed. In addition to the _curl_option_ from _curl.cfg_ the plugin uses the hard coded options `-q -w %{json} -o NUL -s` on Windows and on Linux `-q -w %{json} -o /dev/null -s`. +On each line you have the three fields _service_name_, _url_, _curl_options_, _curl_item__#. Thes fields are sepereated by `|`. There are no comments or empty lines allowed. In addition to the _curl_option_ from _curl.cfg_ the plugin uses the hard coded options `-q -w %{json} -s` on Windows and on Linux `-q -w %{json} -s`. If no expected strings are configured, the option `-o NUL` will be added on Windows and `-o /dev/null` on Linux. <details><summary>Sample curl.cfg file</summary> ``` -forum.checkmk.com|https://forum.checkmk.com/|"--location --insecure" -thl-cmk.hopto.org|https://thl-cmk.hopto.org|"--location --head" +forum.checkmk.com|https://forum.checkmk.com/|"--location --insecure"|curl_item_1 +thl-cmk.hopto.org|https://thl-cmk.hopto.org|"--location --head"|curl_item_2 ``` </details> -- GitLab