Update dsmon.sh

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

View File

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