From a491870a4246c15604f859f28178b5363812af95 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 22 Feb 2025 10:55:38 -0600 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 7441ce1..4605c74 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -405,11 +405,11 @@ RUNCMDSLOW(){ echo -e "${idsST[Bold]}'${idsCL[LightCyan]}$(echo "${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20}" | awk '{$1=$1};1')${idsCL[White]}'${idsCL[Default]}${idsST[Reset]}\n" while read hostid hostname hostip hostlimits; do - #if [ "${hostname}" != "host" ]; then + if [ "${hostname}" != "host" ]; then echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${hostname}${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} echo - #fi + 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") echo -e "${idsCL[LightGreen]}Complete, the command was ran on all nodes\n"