diff --git a/dsmon.sh b/dsmon.sh index 1e47a82..671e666 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -113,7 +113,8 @@ CHECK(){ if [ "${checkhost}" != "false" ]; then #echo ${host_limits[${hostid}]} - for x in "${!host_limits[${hostid}][@]}"; do printf "[%s]=%s\n" "$x" "${host_limits[${hostid}][$x]}" ; done + hostlimits=(${host_limits[${hostid}]}) + for x in "${!hostlimits[@]}"; do printf "[%s]=%s\n" "$x" "${hostlimits[$x]}" ; done # DRIVEINFO=$(ssh root@${host_ip[$hostid]} df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|nvme|localhost|shm|mmcblk|overlay|-volume|Music|media-data|Software' | awk '{ print $1 " " $2 " " $4 }') # DRIVEINFO=(${DRIVEINFO})