update
This commit is contained in:
@@ -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
|
||||
|
||||
10
dsmon.sh
10
dsmon.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user