Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-10 19:48:22 -06:00
parent 5df9d33741
commit d915973f09

View File

@@ -631,20 +631,20 @@ CHECK-CERTS(){
SERVERFILE=/opt/idssys/nodemgmt/ssldomains
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
# 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(){