Update dsmon.sh

This commit is contained in:
2023-07-04 19:42:08 -05:00
parent c1f5b23dbb
commit eee2e4fa81

View File

@@ -309,9 +309,9 @@ GETCRONTABS(){
# if ! root@${host_ip[$hostid]} command -v sshpass > /dev/null; then
# ssh -tq root@${host_ip[$hostid]} apt install -yq sshpass > /dev/null 2>&1
# fi
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering crontabs${idsCL[Default]}${idsST[Reset]}"
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Gathering Crontabs${idsCL[Default]}${idsST[Reset]}"
# ssh -tq root@${host_ip[$hostid]} crontab -l | sshpass -p'Dc$@54115' ssh -o 'StrictHostKeyChecking no' root@10.10.10.50 'cat > /opt/idssys/nodemgmt/crontabs/`hostname`.crontab'
ssh -tq root@${host_ip[$hostid]} crontab -l | > /opt/idssys/nodemgmt/crontabs/`hostname`.crontab
ssh -tq root@${host_ip[$hostid]} crontab -l > /opt/idssys/nodemgmt/crontabs/`hostname`.crontab
else
echo -e "${idsST[Bold]}${idsCL[Red]} ${host_name[$hostid]} - Timeout${idsCL[Default]}${idsST[Reset]}"
fi