check_http: support --verify-host

refs #7969
This commit is contained in:
Alexander A. Klimov 2020-05-13 10:41:24 +02:00
parent d5d89b7f39
commit 3c60d851fb
2 changed files with 5 additions and 0 deletions

View File

@ -664,6 +664,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

@ -535,6 +535,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$"