Update test.sh

This commit is contained in:
2019-02-11 12:33:46 -06:00
parent 0155302741
commit 7425ae9eb4

15
test.sh
View File

@@ -19,6 +19,15 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
exit 0
fi
toterrtime=`date +%s`-$(stat -c %Y /opt/idssys/nodemgmt/10.5.10.53-haproxy.down)
#show_time ${toterrtime}
echo "has been down for $(SHOW_TIME ${toterrtime})"
IFS=$'\n'
for LINE in `egrep -v '(^#|^$)' ${FOLDER}/ssl-cert-check/ssldomains`
do
HOST=${LINE%% *}
PORT=${LINE#* }
IFS=" "
echo "${HOST} - ${PORT}"
done
unset IFS