Update dsmon.sh

This commit is contained in:
2025-07-27 21:48:03 -05:00
parent f2f99eb466
commit a6d39f633f

View File

@@ -227,6 +227,8 @@ RUN_CHECK(){
touch /tmp/dscheck.${hostname}.running touch /tmp/dscheck.${hostname}.running
hostid=${host_ids[$hostname]} hostid=${host_ids[$hostname]}
echo "HERE: ${hostname}-${hostid} = ${host_ip[$hostid]}"
MSG=" ${host_name[$hostid]}" MSG=" ${host_name[$hostid]}"
MSG2="[ ${host_name_full[$hostid]} ]" MSG2="[ ${host_name_full[$hostid]} ]"
@@ -238,8 +240,7 @@ RUN_CHECK(){
echo -e "${idsST[Bold]}${idsBG[Blue]}${idsCL[White]}${MSG}${spcA}${MSG2}${spcB}${MSG3}${idsST[Reset]}" echo -e "${idsST[Bold]}${idsBG[Blue]}${idsCL[White]}${MSG}${spcA}${MSG2}${spcB}${MSG3}${idsST[Reset]}"
DIVIDER . . 85 DIVIDER . . 85
# checkhost=$(CHECK_HOST ${host_ip[$hostid]}) checkhost=$(CHECK_HOST ${host_ip[$hostid]})
checkhost=true
if [ "${checkhost}" != "false" ]; then if [ "${checkhost}" != "false" ]; then
declare -A host_limits_tmp declare -A host_limits_tmp
hostlimits=(${host_limits[${hostid}]}) hostlimits=(${host_limits[${hostid}]})