diff --git a/README.md b/README.md index c69f4017e3c1dd5b5654521442526f59c53b5257..507d86b18f2b44c3021211dd07d04fb1becf53bd 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>