mirror of https://github.com/Icinga/icinga2.git
ITL: add check_http args for SSL version forcing
The -S argument of check_http can take a number, which forces the connection to use a specific SSL version. This is implemented as multiple options because check_http does not accept the number following -S if they are separated. fixes #10358 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
cd5f11b1ea
commit
5c52e3e428
|
@ -436,6 +436,9 @@ http_vhost | **Optional.** The virtual host that should be sent in
|
|||
http_uri | **Optional.** The request URI.
|
||||
http_port | **Optional.** The TCP port. Defaults to 80 when not using SSL, 443 otherwise.
|
||||
http_ssl | **Optional.** Whether to use SSL. Defaults to false.
|
||||
http_ssl_force_tlsv1 | **Optional.** Whether to force TLSv1.
|
||||
http_ssl_force_sslv2 | **Optional.** Whether to force SSLv2.
|
||||
http_ssl_force_sslv3 | **Optional.** Whether to force SSLv3.
|
||||
http_sni | **Optional.** Whether to use SNI. Defaults to false.
|
||||
http_auth_pair | **Optional.** Add 'username:password' authorization pair.
|
||||
http_proxy_auth_pair | **Optional.** Add 'username:password' authorization pair for proxy.
|
||||
|
|
|
@ -331,6 +331,15 @@ object CheckCommand "http" {
|
|||
"-S" = {
|
||||
set_if = "$http_ssl$"
|
||||
}
|
||||
"-S1" = {
|
||||
set_if = "$http_ssl_force_tlsv1$"
|
||||
}
|
||||
"-S2" = {
|
||||
set_if = "$http_ssl_force_sslv2$"
|
||||
}
|
||||
"-S3" = {
|
||||
set_if = "$http_ssl_force_sslv3$"
|
||||
}
|
||||
"--sni" = {
|
||||
set_if = "$http_sni$"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue