changed debug filename to include perf
This commit is contained in:
@@ -176,7 +176,6 @@ def zpoolIostat():
|
||||
|
||||
def collect_data(minutes):
|
||||
if is_freebsd():
|
||||
print("Starting gstat collection.")
|
||||
gstat_command = ["gstat", "-C", "-s", "-d", "-o", "-p", "-I", "5s"]
|
||||
with open("gstat.csv", "a") as output_file:
|
||||
# Create a Popen object with stdout redirected to the file
|
||||
@@ -207,7 +206,6 @@ def collect_data(minutes):
|
||||
|
||||
# kill gstat if freebsd
|
||||
if is_freebsd():
|
||||
print("Killing gstat process.")
|
||||
process.kill()
|
||||
|
||||
|
||||
@@ -266,7 +264,7 @@ def upload_debug():
|
||||
"customer:ixcustomer",
|
||||
"-T",
|
||||
debug_file,
|
||||
f"ftp.ixsystems.com/debug-{hostname}-{datetime.now().strftime('%Y%m%d%H%M')}.tgz",
|
||||
f"ftp.ixsystems.com/debug-perf-{hostname}-{datetime.now().strftime('%Y%m%d%H%M')}.tgz",
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user