Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user