Update dsmon.sh
This commit is contained in:
1 parent
c6a9e3a9ed
commit
f7ef02deef
1 file changed
+2
-2
@@ -142,9 +142,9 @@ CHECK(){
|
||||
|
||||
nc_count=0; completed=false; scanstart=$(date +%s)
|
||||
until [ "${completed}" == "true" ]; do
|
||||
until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
|
||||
# until [ $(ls /tmp/dscheck.*.done 2>/dev/null | wc -l) -gt 0 ]; do tmp=tmp; done
|
||||
for host in /tmp/dscheck.*.done; do
|
||||
NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${nodestatus}")
|
||||
NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${host}")
|
||||
if [ "${NTS}" != "*" ]; then
|
||||
hoststatus=$(cat /tmp/dscheck.${NTS}.results)
|
||||
[ "${hoststatus}" != "" ] && echo -e "${hoststatus}"
|
||||
|
||||
Reference in new issue
Block a user