This commit is contained in:
2019-02-10 19:36:55 -06:00
parent 7b9fb2873c
commit 62dcf4671d
2 changed files with 765 additions and 3 deletions

View File

@@ -627,9 +627,25 @@ LISTCERTS(){
}
CHECK-CERTS(){
/opt/idssys/nodemgmt/ssl-cert-check.sh -f /opt/idssys/nodemgmt/ssldomains -a
# /opt/idssys/nodemgmt/ssl-cert-check.sh -f /opt/idssys/nodemgmt/ssldomains -a
source /opt/idssys/nodemgmt/ssl-check.sh
print_heading
IFS=$'\n'
for LINE in `egrep -v '(^#|^$)' ${SERVERFILE}`
do
HOST=${LINE%% *}
PORT=${LINE#* }
IFS=" "
if [ "$PORT" = "FILE" ]
then
check_file_status ${HOST} "FILE" "${HOST}"
else
check_server_status "${HOST}" "${PORT}"
fi
done
IFS=${OLDIFS}
print_summary
}
BACKUP(){