Update dsmon.sh

This commit is contained in:
2024-01-06 09:45:38 -06:00
parent b7293a7103
commit 010018404b

View File

@@ -395,13 +395,14 @@ GETCRONTABS(){
fi fi
for hostid in "${!host_ip[@]}"; do for hostid in "${!host_ip[@]}"; do
checkhost=$(CHECK_HOST ${host_ip[$hostid]}) echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]}${idsCL[Default]}${idsST[Reset]}"
if [ "${checkhost}" != "false" ]; then # checkhost=$(CHECK_HOST ${host_ip[$hostid]})
echo -en "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}" # if [ "${checkhost}" != "false" ]; then
# ssh -tq root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} # echo -en "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}"
else # ssh -tq root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd}
echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}" # else
fi # echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}"
# fi
done done
echo echo