Update dsmon.sh

This commit is contained in:
2023-01-02 10:58:43 -06:00
parent a93e2cbc53
commit c81091bec5

View File

@@ -80,7 +80,8 @@ RUN(){
}
CHECK(){
start=`date +%s`
declare -A host_ip
declare -A host_name
declare -A host_limits
@@ -104,7 +105,7 @@ CHECK(){
#for hostid in "${!host_ip[@]}"; do
for hostname in "${hostnames_sort[@]}"; do
hostid=${host_ids[$hostname]}
echo -e "${idsST[Bold]}"; DIVIDER
echo -e "${idsST[Bold]}"; DIVIDER true
echo -e "${idsCL[LightCyan]} ${host_name[$hostid]} - Drive Space Check${idsCL[Default]}"
DIVIDER; echo -e "${idsST[Reset]}"
@@ -194,6 +195,11 @@ CHECK(){
fi
done
end=`date +%s`
runtime=$((end-start))
echo
echo "runtime: ${runtime}"
}
SETUPSSH(){