diff --git a/dsmon.sh b/dsmon.sh index f5605cd..d39254c 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -568,6 +568,8 @@ GETCRONTAB(){ crontab -l | sshpass -p${1} ${SSHCMD} -o 'StrictHostKeyChecking no' nm_crontab_user@${nmip} "cat > ${DS_CRONTAB_FOLDER}/${host}.crontab" > /dev/null 2>&1 if [ -f /opt/copycerts.sh ]; then sshpass -p${1} scp /opt/copycerts.sh nm_crontab_user@${nmip}:${DS_COPYCERTS_FOLDER}/${host}_copycerts.sh > /dev/null 2>&1 + elif [ -f /opt/idssys/nodemgmt/conf/copycerts.sh.inc ]; then + sshpass -p${1} scp /opt/idssys/nodemgmt/conf/copycerts.sh.inc nm_crontab_user@${nmip}:${DS_COPYCERTS_FOLDER}/${host}_copycerts.sh.inc > /dev/null 2>&1 fi fi done <<< $(MYSQL_PWD="sysmoninsert" ${mysqlcmd} ${mysql_conn} -u sysmoninsert -e "SELECT host,hostname FROM servermonitor.hosts WHERE id=${SERVERMON_ID}")