Update dsmon.sh

This commit is contained in:
2025-03-28 08:45:39 -05:00
parent ff450b7997
commit 7d7801516a

View File

@@ -395,7 +395,8 @@ RUNCMD_SUB(){
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} [${ip}] - Timeout${idsCL[Default]}" >> ${tmpfile}.running
echo -e "${ssh_output}" >> ${tmpfile}.running
# echo -e "${idsCL[Red]} ${host} [${ip}] - Timeout${idsCL[Default]}" >> ${tmpfile}.running
fi
mv ${tmpfile}.running ${tmpfile}.done > /dev/null 2>&1
}