From c7d8a3780ebcfd4c50d62a36e939aabe4014693d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 12:26:47 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d4f908fe..f5616474 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1195,15 +1195,15 @@ CHECK-CERTS(){ CERTDAYS=${CERTINFO#*days=} if [ "${CERTVALID}" == "0" ]; then echo "${HOST} - SSL is not valid" - SEND_NOTICE "SSL Not Valid" "The (${HOST}) SSL is not valid" 1 + SENDNOTICE "SSL Not Valid" "The (${HOST}) SSL is not valid" 1 elif [ ${CERTDAYS} -lt 30 ] && [ ${CERTDAYS} -gt 0 ]; then echo "$HOST SSL is expiring in $CERTDAYS days!" - SEND_NOTICE "SSL Expiring" "The (${HOST}) SSL is expiring in ${CERTDAYS} days" 1 + SENDNOTICE "SSL Expiring" "The (${HOST}) SSL is expiring in ${CERTDAYS} days" 1 elif [ ${CERTDAYS} -lt 20 ]; then echo "$HOST SSL Expired!" - SEND_NOTICE "SSL Expired" "The (${HOST}) SSL is expiring in ${CERTDAYS} days" 2 + SENDNOTICE "SSL Expired" "The (${HOST}) SSL is expiring in ${CERTDAYS} days" 2 else echo "${HOST} SSL is valid for ${CERTDAYS} days"