From d07cb0ce4684bc13a52afbd32b42cee58219bd66 Mon Sep 17 00:00:00 2001 From: Stefan Mayr Date: Mon, 9 Jan 2023 09:39:29 +0100 Subject: [PATCH] apps::protocols::x509 - allow ignoring http redirects for X509 check (#4132) Add --no-follow parameter to ignore http redirects --- centreon-plugins/apps/protocols/x509/custom/https.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/centreon-plugins/apps/protocols/x509/custom/https.pm b/centreon-plugins/apps/protocols/x509/custom/https.pm index 7e7a0f194..97744aab1 100644 --- a/centreon-plugins/apps/protocols/x509/custom/https.pm +++ b/centreon-plugins/apps/protocols/x509/custom/https.pm @@ -48,6 +48,7 @@ sub new { 'method:s' => { name => 'method' }, 'urlpath:s' => { name => 'url_path' }, 'timeout:s' => { name => 'timeout' }, + 'no-follow' => { name => 'no_follow' }, 'header:s@' => { name => 'header' } }); } @@ -224,6 +225,10 @@ Threshold for HTTP timeout (Default: 5) Set HTTP headers (Multiple option) +=item B<--no-follow> + +Do not follow http redirect + =back =head1 DESCRIPTION