Update dsmon.sh

This commit is contained in:
2024-01-06 23:29:30 -06:00
parent 17166181cb
commit a56ec44671

View File

@@ -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)