Update dsmon.sh

This commit is contained in:
2024-03-12 10:01:24 -05:00
parent 7f70381947
commit bbb14dca3b

View File

@@ -340,7 +340,7 @@ RUNCMD(){
while read hostid hostname hostip hostlimits; do
if [ "${hostname}" != "host" ]; then
ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${hostip} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22}
ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${hostip} ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22}
fi
done <<< $(MYSQL_PWD="sysmoninsert" mysql -h ${mysqlip} -P 3307 -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 ORDER BY host ASC")