Skip to content
Snippets Groups Projects
Commit 3f794c2e authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add check_ssl_certs

parent e64410be
Branches
No related tags found
No related merge requests found
...@@ -139,11 +139,12 @@ do ...@@ -139,11 +139,12 @@ do
else else
result="OK" result="OK"
fi fi
shortstatus="${shortstatus}${result} ${mySubject} [${iLeft}d] |" shortstatus="${shortstatus}${result} ${mySubject} [${iLeft}d] | "
fullstatus="${fullstatus} fullstatus="${fullstatus}
----- $iCounter/ $iTotal: ${mySubject} - $iLeft days ----- $iCounter/ $iTotal: ${mySubject} - $iLeft days
$( echo "$data" | grep -E "(DNS:|Issuer:|Not\ |Subject:)" | sed 's#^\ *##g') $( echo "$data" | grep -E "(DNS:|Issuer:|Not\ |Subject:)" | sed 's#^\ *##g')
File: $mycert" File: $mycert
"
ph.perfadd "ssl-$mySubject" "${iLeft}" "" "" 0 "" ph.perfadd "ssl-$mySubject" "${iLeft}" "" "" 0 ""
fi fi
...@@ -163,7 +164,6 @@ fi ...@@ -163,7 +164,6 @@ fi
ph.status "SSL certs | $shortstatus" ph.status "SSL certs | $shortstatus"
echo "$fullstatus" echo "$fullstatus"
echo
echo "INFO: warning below $iWarn d before expiration; raise to critical $iCrit days before" echo "INFO: warning below $iWarn d before expiration; raise to critical $iCrit days before"
echo echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment