Update dsmon.sh
This commit is contained in:
10
dsmon.sh
10
dsmon.sh
@@ -80,7 +80,8 @@ RUN(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
CHECK(){
|
CHECK(){
|
||||||
|
start=`date +%s`
|
||||||
|
|
||||||
declare -A host_ip
|
declare -A host_ip
|
||||||
declare -A host_name
|
declare -A host_name
|
||||||
declare -A host_limits
|
declare -A host_limits
|
||||||
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user