From 3f794c2e92df437c3c532b88beab7cb7a5269f9f Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Wed, 6 Oct 2021 10:45:54 +0200
Subject: [PATCH] add check_ssl_certs

---
 check_ssl_certs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/check_ssl_certs b/check_ssl_certs
index a54dda9..5d4b71c 100755
--- a/check_ssl_certs
+++ b/check_ssl_certs
@@ -139,11 +139,12 @@ do
             else
                     result="OK"
             fi
-            shortstatus="${shortstatus}${result} ${mySubject} [${iLeft}d] |"
+            shortstatus="${shortstatus}${result} ${mySubject} [${iLeft}d] | "
             fullstatus="${fullstatus}
 ----- $iCounter/ $iTotal: ${mySubject} - $iLeft days 
 $( echo "$data" | grep -E "(DNS:|Issuer:|Not\ |Subject:)" | sed 's#^\ *##g')
-File: $mycert"
+File: $mycert
+"
 
             ph.perfadd "ssl-$mySubject"       "${iLeft}"       "" "" 0 ""
         fi
@@ -163,7 +164,6 @@ fi
 
 ph.status "SSL certs | $shortstatus"
 echo "$fullstatus"
-echo
 echo "INFO: warning below $iWarn d before expiration; raise to critical $iCrit days before"
 echo
 
-- 
GitLab