From b47a2e46d935df6c987be391c5cad07edbeabbe1 Mon Sep 17 00:00:00 2001 From: "William Hirigoyen (Evolix)" Date: Thu, 11 Aug 2022 15:08:07 +0200 Subject: [PATCH] [nagios-nrpe] Ajout check_ssl_local --- nagios-nrpe/files/plugins/check_ssl_local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nagios-nrpe/files/plugins/check_ssl_local b/nagios-nrpe/files/plugins/check_ssl_local index 7c8d241e..f3d10ced 100755 --- a/nagios-nrpe/files/plugins/check_ssl_local +++ b/nagios-nrpe/files/plugins/check_ssl_local @@ -24,8 +24,8 @@ certs_list=$(cat "$certs_list_path" | sed -E 's/(.*)#.*/\1/g' | grep -v -E '^$') for cert_path in $certs_list; do - if [ ! -f "$cert_path" ]; then - >&2 echo "Warning: Cert file '$cert_path' does not exist." + if [ ! -f "$cert_path" ] && [ ! -d "$cert_path" ]; then + >&2 echo "Warning: path '$cert_path' is not a file or a directory." warning=1 continue fi