From b1b3886845fdd7438272e65e868ea22a6baf1b1f Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Mon, 17 Jun 2024 14:24:17 -0400 Subject: [PATCH] moved gstat outside of loop again --- collect.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collect.sh b/collect.sh index 7bccbed..d766704 100755 --- a/collect.sh +++ b/collect.sh @@ -23,9 +23,11 @@ echo "Starting ['gstat','iostat','zpool','cpu','nic'] Collection" echo "" echo -n "minute:" + +timeout ${minutes}m gstat -C -s -d -o -p -I 60s >> gstat.csv & + for (( i=1; i<=$minutes; i++ )); do - timeout 2s gstat -C -s -d -o -p -I 60s >> gstat.csv & python3 zpooliostat.py python3 iostat.py python3 topstat.py