Update dsmon.sh

This commit is contained in:
2024-01-26 08:59:11 -06:00
parent 2d90b5240f
commit 2b1dd35999

View File

@@ -404,7 +404,8 @@ UPDATENODES(){
while read hostid hostname hostip hostlimits; do
if [ "$hostid" != "id" ]; then
echo -e "${idsCL[LightCyan]}Updating DSMON on '${hostname}'${idsCL[Default]}"
ssh -tq -o ConnectTimeout=1 -o ConnectionAttempts=1 root@$(echo $hostip | cut -d ";" -f1) "dsmon update" &
ssh -tq -o ConnectTimeout=1 -o ConnectionAttempts=1 root@$(echo $hostip | cut -d ";" -f1) "dsmon update"
echo
fi
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h ${mysqlip} -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 ORDER BY host ASC")