From 5defe92b8bfaab50f238705406b80ad6c4cef752 Mon Sep 17 00:00:00 2001 From: thl-cmk <thl-cmk@outlook.com> Date: Thu, 3 Mar 2022 20:33:28 +0000 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5e53b30..24ac0f2 100644 --- a/README.md +++ b/README.md @@ -77,10 +77,10 @@ To use this plugin with the RAW edition of CMK you need to copy the plugin files <details><summary>Details</summary> -| OS| What | File | To | +| OS| What | File | Copy to | |-----| ------ | ------ | ------ | -|Windows| script | `curl.ps1` | `C:\ProgramData\checkmk\agent\bin\curl.ps1` | -|| config | `curl.cfg` | `C:\ProgramData\checkmk\agent\config.curl.cfg` | +|Windows| script | `curl.ps1` | `C:\ProgramData\checkmk\agent\plugins\curl.ps1` | +|| config | `curl.cfg` | `C:\ProgramData\checkmk\agent\config\curl.cfg` | || executable | `curl.exe.32` or `curl.exe.64` | `C:\ProgramData\checkmk\agent\bin\curl.exe` | || 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` | @@ -89,7 +89,7 @@ To use this plugin with the RAW edition of CMK you need to copy the plugin files Don't forget to make the Linux script executable (`chmod a+x curl.sh`). -*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)). +*Note*: the executables and cert are optional. If you don't want to use them, the plugin tryes to use the system provided crul (see: [curl shipped by Microsoft](https://curl.se/windows/microsoft.html)). </details> @@ -97,13 +97,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_, _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. +On each line you have the four 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_options_ from _curl.cfg_ the plugin uses the hard coded options `-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"|curl_item_1 -thl-cmk.hopto.org|"https://thl-cmk.hopto.org"|"--location --head"|curl_item_2 +forum.checkmk.com|"https://forum.checkmk.com/"|-o /dev/null --location --insecure|curl_item_1 +thl-cmk.hopto.org|"https://thl-cmk.hopto.org"|-o /dev/null --user-agent "your user agent" --referer "https:/your.referer.com " --header "X-Header-1: your first header"|curl_item_2 ``` </details> -- GitLab