diff --git a/AUTHORS b/AUTHORS index b661897b6..3253f3ec3 100644 --- a/AUTHORS +++ b/AUTHORS @@ -283,6 +283,7 @@ Thomas Widhalm Tim Hardeck Tim Weippert Timo Buhrmester +Tobias Bauriedel Tobias Birnbaum Tobias Deiminger Tobias von der Krone diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 5bb81a95a..f7b57b831 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -716,6 +716,7 @@ http_warn_time | **Optional.** The warning threshold. http_critical_time | **Optional.** The critical threshold. http_expect | **Optional.** Comma-delimited list of strings, at least one of them is expected in the first (status) line of the server response. Default: HTTP/1. http_certificate | **Optional.** Minimum number of days a certificate has to be valid. Port defaults to 443. When this option is used the URL is not checked. The first parameter defines the warning threshold (in days), the second parameter the critical threshold (in days). (Example `http_certificate = "30,20"`). +http_certificate_continue | **Optional.** Allows the HTTP check to continue after performing the certificate check. Does nothing unless http_certificate is used. http_clientcert | **Optional.** Name of file contains the client certificate (PEM format). http_privatekey | **Optional.** Name of file contains the private key (PEM format). http_headerstring | **Optional.** String to expect in the response headers. @@ -734,6 +735,7 @@ http_ipv4 | **Optional.** Use IPv4 connection. Defaults t http_ipv6 | **Optional.** Use IPv6 connection. Defaults to false. http_link | **Optional.** Wrap output in HTML link. Defaults to false. http_verbose | **Optional.** Show details for command-line debugging. Defaults to false. +http_extra_opts | **Optional.** Read extra plugin options from an ini file. http_verify_host | **Optional.** Verify SSL certificate is for the -H hostname (with --sni and -S). Defaults to false. **Only supported by the Nagios plugins version of check\_http, not by the monitoring plugins one.** diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 9bdf33bfe..e80d1366d 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -360,6 +360,11 @@ object CheckCommand "http" { value = "$http_vhost$" description = "Host name argument for servers using host headers (virtual host)" } + "--extra-opts" = { + set_if = {{ string(macro("$http_extra_opts$")) != "" }} + value = "$http_extra_opts$" + description = "Read extra plugin options from an ini file" + } "-I" = { set_if = {{ string(macro("$http_address$")) != "" }} value = "$http_address$" @@ -425,6 +430,10 @@ object CheckCommand "http" { value = "$http_certificate$" description = "Minimum number of days a certificate has to be valid. This parameter explicitely sets the port to 443 and ignores the URL if passed." } + "--continue-after-certificate" = { + set_if = "$http_certificate_continue$" + description = "Allows the HTTP check to continue after performing the certificate check. Does nothing unless -C is used" + } "-J" = { value = "$http_clientcert$" description = "Name of file contains the client certificate (PEM format)"