From 94ca9231358fb35b9e94dab57402fd147d4a1960 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 22 Feb 2025 10:57:21 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 26f17dc..e0f69af 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -407,7 +407,7 @@ RUNCMDSLOW(){ while read hostid hostname hostip hostlimits; do if [ "${hostname}" != "host" ]; then echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${hostname} - $(echo ${hostip} | cut -d ";" -f1)${idsCL[Default]}${idsST[Reset]}" - #ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 root@$(echo ${hostip} | cut -d ";" -f1) ${1} ${2} ${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@$(echo ${hostip} | cut -d ";" -f1) ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22} echo fi done <<< $(MYSQL_PWD="sysmoninsert" mariadb --skip-ssl -h ${mysqlip} -P 3307 -u sysmoninsert -e "SELECT id,host,ip,limits FROM servermonitor.hosts WHERE disabled=0 ORDER BY host ASC") @@ -557,8 +557,8 @@ case ${ACTION} in gettsip) GETTSIP;; gettsip-node) GETTSIP_NODE;; run) RUN ${2};; - runcmd) RUNCMD ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21};; - runcmdslow) RUNCMDSLOW ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21};; + runcmd) RUNCMD ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21};; + runcmdslow) RUNCMDSLOW ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21};; update);; updatenodes) UPDATENODES;; *)