From 386bcb1b87e5a18c09950b05e2fec0cde65c899c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 22 Feb 2025 11:11:04 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index b0e5b61..2f57ad6 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -410,7 +410,7 @@ RUNCMDSLOW(){ # ssh -q -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") + 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") echo -e "${idsCL[LightGreen]}Complete, the command was ran on all nodes\n"