Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-10 19:38:07 -06:00
parent 62dcf4671d
commit 137a5d3e3b

View File

@@ -627,18 +627,17 @@ 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
SERVERFILE=/opt/idssys/nodemgmt/ssldomains
source /opt/idssys/nodemgmt/ssl-check.sh
print_heading
IFS=$'\n'
for LINE in `egrep -v '(^#|^$)' ${SERVERFILE}`
do
for LINE in `egrep -v '(^#|^$)' ${SERVERFILE}`; do
HOST=${LINE%% *}
PORT=${LINE#* }
IFS=" "
if [ "$PORT" = "FILE" ]
then
if [ "$PORT" = "FILE" ]; then
check_file_status ${HOST} "FILE" "${HOST}"
else
check_server_status "${HOST}" "${PORT}"