From 124d191afac97c3c53bb07ee6d34dfd05a0d0efe Mon Sep 17 00:00:00 2001 From: Silas <67681686+Tqnsls@users.noreply.github.com> Date: Wed, 30 Jul 2025 15:41:38 +0200 Subject: [PATCH] add "--long-output" to ssl_cert command Co-Authored-By: Julian Brost --- doc/10-icinga-template-library.md | 1 + itl/plugins-contrib.d/web.conf | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index a266c40fd..d96e89222 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -6095,6 +6095,7 @@ ssl_cert_ignore_ocsp_timeout | **Optional.** Ignore OCSP result when ssl_cert_ignore_sct | **Optional.** Do not check for signed certificate timestamps. ssl_cert_ignore_tls_renegotiation | **Optional.** Do not check for renegotiation. ssl_cert_dane | **Optional.** Verify that valid DANE records exist ({211,301,302,311,312} or empty string). +ssl_cert_long_output | **Optional.** Append the specified comma separated (no spaces) list of attributes to the plugin output on additional lines. #### jmx4perl diff --git a/itl/plugins-contrib.d/web.conf b/itl/plugins-contrib.d/web.conf index 210827c1d..84d70f1bf 100644 --- a/itl/plugins-contrib.d/web.conf +++ b/itl/plugins-contrib.d/web.conf @@ -590,8 +590,11 @@ object CheckCommand "ssl_cert" { "--ignore-maximum-validity" = { description = "Ignore the certificate maximum validity" set_if = "$ssl_cert_ignore_maximum_validity$" - } - + } + "--long-output" = { + description = "Append the specified comma separated (no spaces) list of attributes to the plugin output on additional lines" + value = "$ssl_cert_long_output$" + } } vars.ssl_cert_address = "$check_address$"