Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -136,7 +136,7 @@ CHECK(){
|
||||
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
|
||||
#for hostid in "${!host_ip[@]}"; do
|
||||
for hostname in "${hostnames_sort[@]}"; do
|
||||
until [ $(ls /tmp/dscheck.*.running 2>/dev/null | wc -l) -lt 2 ]; 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 2>/dev/null &
|
||||
done
|
||||
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user