From 2e304f2062c7f0bd5934914b0ae3215280f598f4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Jul 2025 14:13:33 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 6ec2b9c..8312441 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -539,11 +539,10 @@ GETCRONTABS(){ fi for hostid in "${!host_ip[@]}"; do - echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - ${host_ip[$hostid]}${idsCL[Default]}${idsST[Reset]}" + # 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, and copycerts.sh if it exists ... ${idsCL[Default]}${idsST[Reset]}" - ${SSHCMD} root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} #& + ${SSHCMD} root@${host_ip[$hostid]} dsmon get-crontab ${rtpsswd} & else echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}" fi @@ -564,6 +563,7 @@ GETCRONTAB(){ if [ "${nmip}" != "" ]; then while read host hostname; do if [ "${host}" != "host" ] && [ "${host}" != "" ]; then + echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs, and copycerts.sh if it exists ... ${idsCL[Default]}${idsST[Reset]}" # echo -e "${SERVERMON_ID}) ${host} : ${hostname}\nmysqlip=${mysqlip}\n" crontab -l | sshpass -p${1} ${SSHCMD} -o 'StrictHostKeyChecking no' nm_crontab_user@${nmip} "cat > ${DS_CRONTAB_FOLDER}/${host}.crontab" if [ -f /opt/copycerts.sh ]; then