From 010018404b631891575e59a7e1a26c1e169e7ce5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 6 Jan 2024 09:45:38 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index fa34e07..bedc665 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -395,13 +395,14 @@ GETCRONTABS(){ fi for hostid in "${!host_ip[@]}"; do - checkhost=$(CHECK_HOST ${host_ip[$hostid]}) - if [ "${checkhost}" != "false" ]; then - echo -en "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}" - # ssh -tq root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} - else - echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}" - fi + echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]}${idsCL[Default]}${idsST[Reset]}" + # checkhost=$(CHECK_HOST ${host_ip[$hostid]}) + # if [ "${checkhost}" != "false" ]; then + # echo -en "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs ... ${idsCL[Default]}${idsST[Reset]}" + # ssh -tq 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