Update dsmon.sh

This commit is contained in:
2023-01-02 11:12:34 -06:00
parent d5d3a6e3b7
commit 079965ef83

View File

@@ -116,11 +116,11 @@ CHECK(){
for hl in ${hostlimits[@]}; do
hlname=$(echo $hl | cut -d ":" -f1)
hllim=$(echo $hl | cut -d ":" -f2)
echo "$hlname - $hllim"
host_limits[$hlname]=$hllim
done
echo
#for x in "${!hostlimits[@]}"; do printf "[%s]=%s\n" "$x" "${hostlimits[$x]}" ; done
for x in "${!host_limits[@]}"; do printf "[%s]=%s\n" "$x" "${host_limits[$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})