From b7c152e2e4579f9b0b2ea6dd154eb17eacf0fb28 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 26 Jan 2024 14:33:49 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 88900be..17909f9 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -460,16 +460,16 @@ GETCRONTABS(){ rtpsswd=${1} fi - for hostid in "${!host_ip[@]}"; do - # echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - ${host_ip[$hostid]}${idsCL[Default]}${idsST[Reset]}" - # checkhost=$(CHECK_HOST ${host_ip[$hostid]}) - # if [ "${checkhost}" != "false" ]; then - # echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}" - # ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} & - # else - # echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}" - # fi - done + # for hostid in "${!host_ip[@]}"; do + # # echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - ${host_ip[$hostid]}${idsCL[Default]}${idsST[Reset]}" + # # checkhost=$(CHECK_HOST ${host_ip[$hostid]}) + # # if [ "${checkhost}" != "false" ]; then + # # echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}" + # ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} & + # # else + # # echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}" + # # fi + # done echo end=`date +%s`