Update dsmon.sh

This commit is contained in:
2025-06-13 20:46:54 -05:00
parent e3a1c14117
commit e12aa3cf14

View File

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