From 6a26a180c97e7abc86cf135987897ca9601b08d9 Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Fri, 12 Jul 2024 14:07:09 -0400 Subject: [PATCH] changed gstat, added header row, overwrite csv each time --- collect.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/collect.sh b/collect.sh index 9bb3b77..82c816e 100755 --- a/collect.sh +++ b/collect.sh @@ -18,13 +18,11 @@ echo "This script will auto uploaded data to ftp.ixsystems.com when completed." echo "It will also copy the '*.csv' files to /var/log" echo "Airgapped systems will need to upload the '*.csv' and/or take a debug." echo "" -echo "If you run this script multiple times, it will append to the CSVs" -echo "" echo "Starting ['gstat','iostat','zpool','cpu','nic'] Collection" echo "" echo -n "START MINUTE COUNT:" - +echo "timestamp,name,q-depth,total_ops/s,read/s,read_sz-KiB,read-KiB/s,ms/read,write/s,write_sz-KiB,write-KiB/s,ms/write,delete/s,delete-sz-KiB,delete-KiB/s,ms/delete,other/s,ms/other,%busy" > gstat.csv timeout ${minutes}m gstat -C -s -d -o -p -I 5s >> gstat.csv & for (( i=1; i<=$minutes; i++ )); do