Skip to content

Commit

Permalink
itl - check_curl: add extra-opts parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindsHat committed Aug 29, 2024
1 parent c3f49c4 commit 8b2349c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/10-icinga-template-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions itl/command-plugins.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 8b2349c

Please sign in to comment.