diff --git a/dsmon.sh b/dsmon.sh index e6e7c2f..c7a8685 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -143,7 +143,7 @@ CHECK(){ nc_count=0; completed=false; scanstart=$(date +%s) until [ "${completed}" == "true" ]; do if [ -f /tmp/dscheck.*.done ]; then - for host in /tmp/dscheck.*.done >/dev/null 2>&1; do + for host in /tmp/dscheck.*.done; do NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${nodestatus}") if [ "${NTS}" != "*" ]; then hoststatus=$(cat /tmp/dscheck.${NTS}.results)