Merge pull request #8005 from Icinga/feature/http-verify-host-7969

check_http: support --verify-host
This commit is contained in:
Julian Brost 2023-01-24 13:02:08 +01:00 committed by GitHub
commit b10c288146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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>

View File

@ -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$"