Update dsmon.sh

This commit is contained in:
2025-06-13 21:02:21 -05:00
parent fd2035ce64
commit 84792941a5

View File

@@ -147,8 +147,7 @@ CHECK(){
for host in /tmp/dscheck.*.done; do
NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${host}")
if [ "${NTS}" != "*" ]; then
hoststatus="$(cat /tmp/dscheck.${NTS}.results)"
[ "${hoststatus}" != "" ] && echo -e "${hoststatus}"
echo -e "$(cat /tmp/dscheck.${NTS}.results)"
rm -f /tmp/dscheck.${NTS}.*
((nc_count++))
fi