Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -116,11 +116,11 @@ CHECK(){
|
|||||||
for hl in ${hostlimits[@]}; do
|
for hl in ${hostlimits[@]}; do
|
||||||
hlname=$(echo $hl | cut -d ":" -f1)
|
hlname=$(echo $hl | cut -d ":" -f1)
|
||||||
hllim=$(echo $hl | cut -d ":" -f2)
|
hllim=$(echo $hl | cut -d ":" -f2)
|
||||||
echo "$hlname - $hllim"
|
host_limits[$hlname]=$hllim
|
||||||
done
|
done
|
||||||
|
|
||||||
echo
|
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=$(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})
|
# DRIVEINFO=(${DRIVEINFO})
|
||||||
|
|||||||
Reference in New Issue
Block a user