From e3b783044903c03d2d9cdf6267cefef1fa18cfb1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 13:32:06 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index 4d14642..d21e5eb 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -152,7 +152,7 @@ CHECK(){ unbuffer bash -c "/usr/local/bin/dsmon runcheck '${hostname}'" > /tmp/dscheck.${hostname}.results & # unbuffer RUN_CHECK "$hostname" > /tmp/dscheck.${hostname}.results & ((started_hosts++)) - printf "\r${idsCL[LightCyan]}${MSG}${spc}: Started on %d of %d hosts ..." "${started_hosts}" "${#hostnames_sort[@]}" + printf "\r${idsCL[LightCyan]}${MSG}${spc}: Started on %d of %d hosts ...${idsCL[Default]}" "${started_hosts}" "${#hostnames_sort[@]}" done [ "${1}" != "report" ] && echo -e "\r\033[2K${idsCL[LightCyan]}${MSG}${spc}: ${idsCL[LightGreen]}Done${idsCL[Default]}" @@ -171,6 +171,7 @@ CHECK(){ ((nc_count++)) fi done + printf "\n${idsCL[LightCyan]}Completed on %d of %d hosts ...${idsCL[Default]}" "${nc_count}" "${#hostnames_sort[@]}" if [ $(($(date +%s)-scanstart)) -gt 300 ]; then SENDNOTICE "DSmon Scan Stuck" "DSmon Check scan has been running for 10mins, klling all bash...." 1