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