Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 5defe92b authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

Update README.md

parent 9d3db2c5
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment