certcheck

This commit is contained in:
2023-04-27 12:49:46 -05:00
parent 07e972d455
commit 0a89fac97e
2 changed files with 3 additions and 3 deletions

View File

@@ -1199,9 +1199,9 @@ CHECK-CERTS(){
echo "${HOST} - SSL is not valid"
SENDNOTICE "SSL Not Valid" "The (${HOST}) SSL is not valid" 1
elif [ ${CERTDAYS} -lt 20 ]; then
elif [ ${CERTDAYS} -lt 1 ]; then
echo "$HOST SSL Expired!"
SENDNOTICE "SSL Expired" "The (${HOST}) SSL is expiring in ${CERTDAYS} days" 2
SENDNOTICE "SSL Expired" "The (${HOST}) SSL is expired!! (${CERTDAYS} days)" 2
elif [ ${CERTDAYS} -lt 30 ]; then
echo "$HOST SSL is expiring in $CERTDAYS days!"