Update dsmon.sh
This commit is contained in:
6
dsmon.sh
6
dsmon.sh
@@ -543,7 +543,7 @@ GETCRONTABS(){
|
||||
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]}"
|
||||
output=$(${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
|
||||
@@ -575,8 +575,8 @@ GETCRONTAB(){
|
||||
|
||||
# [ "${nmip}" != "" ] && crontab -l | sshpass -p${1} ssh -o 'StrictHostKeyChecking no' nm_crontab_user@${nmip} "cat > ${DS_CRONTAB_FOLDER}/${hostname}.crontab"
|
||||
|
||||
# else
|
||||
# echo "No user password specified"
|
||||
else
|
||||
echo "No user password specified"
|
||||
fi
|
||||
}
|
||||
FIXCRONTAB(){
|
||||
|
||||
Reference in New Issue
Block a user