Update dsmon.sh

This commit is contained in:
2023-04-02 18:13:16 -05:00
parent 2821da3bfa
commit 7030eccfd0

View File

@@ -288,7 +288,7 @@ RUNCMD(){
checkhost=$(CHECK_HOST ${host_ip[$hostid]})
if [ "${checkhost}" != "false" ]; then
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host_name[$hostid]} - Running command: ${1}${idsCL[Default]}${idsST[Reset]}"
ssh root@${host_ip[$hostid]} "${1}"
ssh root@${host_ip[$hostid]} ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10}
fi
done
}
@@ -306,7 +306,7 @@ case $action in
check) CHECK ${2};;
setupssh) SETUPSSH;;
run) RUN ${2};;
runcmd) RUNCMD "${2}";;
runcmd) RUNCMD ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11};;
update);;
*) RUN ${action};;
esac