From 0270e0b9ad6de9418aa09d0ab4330365800a0c98 Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Wed, 29 May 2024 18:45:12 -0400 Subject: [PATCH] back to timeout for gstat --- collect.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/collect.sh b/collect.sh index a3830f9..b147747 100755 --- a/collect.sh +++ b/collect.sh @@ -11,13 +11,14 @@ echo "" iterations=$1 +echo "Starting gstat Collection" +timeout "$minutes"m gstat -C -s -d -o -p -I 60s > /root/gstat.csv + +echo "Starting iostat Collection" for (( i=1; i<=$iterations; i++ )); do # Execute the command -echo "Executing $i Iteration" -echo "Processing zpool iostat" python3 ixiostat.py -echo "Processing gstat" -gstat -C -s -d -o -p >> /root/gstat.csv + # Wait for 60 seconds before the next iteration sleep 60 done