From 8b2349c95857b49ac1e188f8df12057fa90867f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20K=C3=A4stle?= <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:26:31 +0200 Subject: [PATCH] itl - check_curl: add extra-opts parameter --- doc/10-icinga-template-library.md | 1 + itl/command-plugins.conf | 4 ++++ 2 files changed, 5 insertions(+) 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)"