Update dsmon.sh
This commit is contained in:
1 parent
e3a1c14117
commit
e12aa3cf14
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user