Update dsmon.sh

This commit is contained in:
2025-06-14 13:19:29 -05:00
parent cb952d4e70
commit 480b24fc31

View File

@@ -170,6 +170,8 @@ CHECK(){
((nc_count++))
fi
done
printf "\rRunning: %d/%d hosts..." "$(jobs -rp | wc -l)" "${#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
pw service all stop