mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8005 from Icinga/feature/http-verify-host-7969
check_http: support --verify-host
This commit is contained in:
commit
b10c288146
|
@ -684,6 +684,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_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.**
|
||||
|
||||
|
||||
### icmp <a id="plugin-check-command-icmp"></a>
|
||||
|
|
|
@ -540,6 +540,10 @@ object CheckCommand "http" {
|
|||
set_if = "$http_verbose$"
|
||||
description = "Show details for command-line debugging"
|
||||
}
|
||||
"--verify-host" = {
|
||||
set_if = "$http_verify_host$"
|
||||
description = "Verify SSL certificate is for the -H hostname (with --sni and -S)"
|
||||
}
|
||||
}
|
||||
|
||||
vars.http_address = "$check_address$"
|
||||
|
|
Loading…
Reference in New Issue