This commit is contained in:
2024-01-26 10:34:11 -06:00
parent 55fa3e5a58
commit 625ec5db0f
2 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ VERS=2.3.23-01262024
DS_FOLDER=/opt/idssys/dsmon
DS_CRONTAB_FOLDER=/opt/idssys/nodemgmt/crontabs
noheader=" gettsip-node get-crontabs get-crontab update report updatenodes "
noheader=" gettsip-node get-crontabs get-crontab update report updatenodes runcmd "
if [ "${NM_NODEMANAGER}" != "" ]; then

View File

@@ -486,11 +486,11 @@ GETCRONTAB(){
if [ "${nmip}" != "" ]; then
while read host hostname; do
echo "${SERVERMON_ID}) ${host} : ${hostname}"
# if [ "${host}" != "host" ]; then
# crontab -l | sshpass -p${1} ssh -o 'StrictHostKeyChecking no' nm_crontab_user@${nmip} "cat > ${DS_CRONTAB_FOLDER}/${host}.crontab"
# echo -e "${idsCL[Green]} done${idsCL[Default]}"
# fi
if [ "${host}" != "host" ]; then
echo "${SERVERMON_ID}) ${host} : ${hostname}"
# crontab -l | sshpass -p${1} ssh -o 'StrictHostKeyChecking no' nm_crontab_user@${nmip} "cat > ${DS_CRONTAB_FOLDER}/${host}.crontab"
# echo -e "${idsCL[Green]} done${idsCL[Default]}"
fi
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h ${mysqlip} -u sysmoninsert -e "SELECT host,hostname FROM servermonitor.hosts WHERE id=${SERVERMON_ID}")
fi