Update nodemgmt-scripts.sh
This commit is contained in:
@@ -627,18 +627,17 @@ LISTCERTS(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
CHECK-CERTS(){
|
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
|
source /opt/idssys/nodemgmt/ssl-check.sh
|
||||||
|
|
||||||
print_heading
|
print_heading
|
||||||
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for LINE in `egrep -v '(^#|^$)' ${SERVERFILE}`
|
for LINE in `egrep -v '(^#|^$)' ${SERVERFILE}`; do
|
||||||
do
|
|
||||||
HOST=${LINE%% *}
|
HOST=${LINE%% *}
|
||||||
PORT=${LINE#* }
|
PORT=${LINE#* }
|
||||||
IFS=" "
|
IFS=" "
|
||||||
if [ "$PORT" = "FILE" ]
|
if [ "$PORT" = "FILE" ]; then
|
||||||
then
|
|
||||||
check_file_status ${HOST} "FILE" "${HOST}"
|
check_file_status ${HOST} "FILE" "${HOST}"
|
||||||
else
|
else
|
||||||
check_server_status "${HOST}" "${PORT}"
|
check_server_status "${HOST}" "${PORT}"
|
||||||
|
|||||||
Reference in New Issue
Block a user