Update dsmon.sh
This commit is contained in:
7
dsmon.sh
7
dsmon.sh
@@ -99,12 +99,12 @@ CHECK(){
|
||||
declare -A host_ids
|
||||
declare -a hostnames_sort
|
||||
|
||||
# if [ "${1}" == "report" ]; then
|
||||
if [ "${1}" == "report" ]; then
|
||||
unset idsCL idsBG idsST
|
||||
idsCL=('')
|
||||
idsBG=('')
|
||||
idsST=('')
|
||||
# fi
|
||||
fi
|
||||
|
||||
if [ "${1}" != "report" ]; then
|
||||
MSG="Determining hosts and preparing"
|
||||
@@ -133,9 +133,6 @@ CHECK(){
|
||||
for hostname in "${hostnames_sort[@]}"; do
|
||||
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 6 ]; do tmp=tmp; done
|
||||
RUN_CHECK ${hostname} > /tmp/dscheck.${hostname}.results
|
||||
# touch /tmp/dscheck.${hostname}.results
|
||||
# touch /tmp/dscheck.${hostname}.done
|
||||
|
||||
done
|
||||
[ "${1}" != "report" ] && echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user