[ITL] Added --proxy for check_ssl_cert

This commit is contained in:
Peter Eckel 2021-07-22 16:53:06 +02:00
parent 2b04e0a754
commit 0a063cfdcc
2 changed files with 5 additions and 0 deletions

View File

@ -5725,6 +5725,7 @@ Name | Description
--------------------------|--------------
ssl_cert_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
ssl_cert_port | **Optional.** TCP port number (default: 443).
ssl_cert_proxy | **Optional.** Proxy server to use for connecting to the host. Sets http_proxy and the s_client -proxy option.
ssl_cert_file | **Optional.** Local file path. Works only if `ssl_cert_address` is set to "localhost".
ssl_cert_warn | **Optional.** Minimum number of days a certificate has to be valid.
ssl_cert_critical | **Optional.** Minimum number of days a certificate has to be valid to issue a critical status.

View File

@ -380,6 +380,10 @@ object CheckCommand "ssl_cert" {
value = "$ssl_cert_port$"
description = "TCP port number (default: 443)"
}
"--proxy" = {
value = "$ssl_cert_proxy$"
description = "Sets http_proxy and the s_client -proxy option"
}
"-f" = {
value = "$ssl_cert_file$"
description = "Local file path (works with -H localhost only)"