From 78d1a8a18e60d5a13656bb41c4d80cd47509343a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 28 Mar 2025 08:39:11 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsmon.sh b/dsmon.sh index 946305b..d596ccb 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -392,7 +392,7 @@ RUNCMD_SUB(){ tmpfile=/tmp/.dsmon.runcmd.${host// /-} touch ${tmpfile}.running > /dev/null 2>&1 echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host}${idsCL[Default]}${idsST[Reset]}" >> ${tmpfile}.running - if ssh_output=$(ssh -tq -o ConnectTimeout=3 -o ConnectionAttempts=1 root@${ip} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22}) ; then + if ssh_output=$(ssh -tq -o ConnectTimeout=5 -o ConnectionAttempts=1 root@${ip} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22}) ; then echo -e "${ssh_output}" >> ${tmpfile}.running else echo -e "${idsCL[Red]} ${host} - Timeout${idsCL[Default]}" >> ${tmpfile}.running