diff --git a/dsmon.sh b/dsmon.sh index 4a89826..d5f85a3 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -111,7 +111,7 @@ CHECK(){ c=0; cw=${C_CW}; spc=''; spc1=$(expr ${cw} - ${#MSG}); until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[LightCyan]}${MSG}${spc}: " fi - if [ -n "$NTS" ] && [ "${1}" != "report" ]; then + if [ -n "${1}" ] && [ "${1}" != "report" ]; then while read hostid hostname hostip hostlimits; do if [ "$hostid" != "id" ]; then hostip=$(echo $hostip | cut -d ";" -f1)