diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index c38cb231ce3..15f56325faa 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -749,6 +749,7 @@ Custom variables passed as [command parameters](03-monitoring-basics.md#command- Name | Description ---------------------------------|--------------------------------- +curl_extra_opts | **Optional.** Read options from an ini file. curl_vhost | **Optional.** The virtual host that should be sent in the "Host" header. curl_ip | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. curl_port | **Optional.** The TCP port. Defaults to 80 when not using SSL, 443 otherwise. diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 54fa6b4e7aa..ff76cf5e72e 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -563,6 +563,10 @@ object CheckCommand "curl" { command = [ PluginDir + "/check_curl" ] arguments += { + "--extra-opts" = { + value = "$curl_extra_opts$" + description = "Read options from an ini file" + } "-H" = { value = "$curl_vhost$" description = "Host name argument for servers using host headers (virtual host). Append a port to include it in the header (eg: example.com:5000)"