This commit is contained in:
Cyberes 2023-09-16 13:37:18 -06:00
parent 7f95ce919e
commit b69d83900c
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ def main():
print(f"UNKNOWN: no data for average GC time")
sys.exit(nagios.UNKNOWN)
python_gc_time_sum = np.round(np.average(), 5)
python_gc_time_sum = np.round(np.average(raw_gc_time), 5)
if python_gc_time_sum >= python_gc_time_sum_MAX:
print(f"CRITICAL: average GC time per collection is {python_gc_time_sum} sec. |'garbage-collection'={python_gc_time_sum}s;;;")
sys.exit(nagios.CRITICAL)