Update dsmon.sh
This commit is contained in:
2
dsmon.sh
2
dsmon.sh
@@ -143,7 +143,7 @@ CHECK(){
|
||||
nc_count=0; completed=false; scanstart=$(date +%s)
|
||||
until [ "${completed}" == "true" ]; do
|
||||
if [ -f /tmp/dscheck.*.done ]; then
|
||||
for host in /tmp/dscheck.*.done >/dev/null 2>&1; do
|
||||
for host in /tmp/dscheck.*.done; do
|
||||
NTS=$(grep -oP '(?<=dscheck.).*?(?=.done)' <<< "${nodestatus}")
|
||||
if [ "${NTS}" != "*" ]; then
|
||||
hoststatus=$(cat /tmp/dscheck.${NTS}.results)
|
||||
|
||||
Reference in New Issue
Block a user