Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -17,7 +17,7 @@ RUN(){
|
|||||||
if [ "${SERVERMON_ID}" != "" ]; then
|
if [ "${SERVERMON_ID}" != "" ]; then
|
||||||
|
|
||||||
if [ "${1}" = "hdd" ]; then
|
if [ "${1}" = "hdd" ]; then
|
||||||
DRIVEINFO=$(df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|localhost|shm|overlay|-volume|Music|Software|//' | awk '{ print $1 " " $2 " " $4 }')
|
DRIVEINFO=$(df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|localhost|shm|overlay|-volume|Music|Software|//|AFS' | awk '{ print $1 " " $2 " " $4 }')
|
||||||
DRIVEINFO=(${DRIVEINFO})
|
DRIVEINFO=(${DRIVEINFO})
|
||||||
NUMDRIVES=$((${#DRIVEINFO[@]} / 3))
|
NUMDRIVES=$((${#DRIVEINFO[@]} / 3))
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ RUN_CHECK(){
|
|||||||
host_limits_tmp[$hlname]=$hllim
|
host_limits_tmp[$hlname]=$hllim
|
||||||
done
|
done
|
||||||
|
|
||||||
DRIVEINFO=$(ssh root@${host_ip[$hostid]} df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|localhost|shm|overlay|-volume|Music|Software|//' | awk '{ print $1 " " $2 " " $4 }')
|
DRIVEINFO=$(ssh root@${host_ip[$hostid]} df -BM | grep -vE '^Filesystem|tmpfs|cdrom|@|ram|loop|udev|veeamimage|localhost|shm|overlay|-volume|Music|Software|//|AFS' | awk '{ print $1 " " $2 " " $4 }')
|
||||||
DRIVEINFO=(${DRIVEINFO})
|
DRIVEINFO=(${DRIVEINFO})
|
||||||
|
|
||||||
# for x in "${!DRIVEINFO[@]}"; do printf "[%s]=%s\n" "$x" "${DRIVEINFO[$x]}" ; done
|
# for x in "${!DRIVEINFO[@]}"; do printf "[%s]=%s\n" "$x" "${DRIVEINFO[$x]}" ; done
|
||||||
|
|||||||
Reference in New Issue
Block a user