added disk-health tresholds

This commit is contained in:
2026-08-12 08:18:15 +02:00
parent 0fd16034d9
commit 925f35da2b
+3 -1
View File
@@ -29,7 +29,9 @@ def graph(output: Path, rrd: Path, start: str, title: str, unit: str,
if thermal_mixed: if thermal_mixed:
args += ["--lower-limit", "0", "--upper-limit", "100", "--rigid"] args += ["--lower-limit", "0", "--upper-limit", "100", "--rigid"]
if any(ds.startswith("health_") for ds, _label, _cf in series): if any(ds.startswith("health_") for ds, _label, _cf in series):
args += ["--lower-limit", "0", "--upper-limit", "10", "--rigid"] args += ["--lower-limit", "0", "--upper-limit", "10", "--rigid",
"HRULE:5#9CA3AF:action threshold",
"HRULE:3#DC2626:urgent threshold"]
value_suffix = "%%" if unit == "%" else "" value_suffix = "%%" if unit == "%" else ""
for index, (ds, label, cf) in enumerate(series): for index, (ds, label, cf) in enumerate(series):
var = f"v{index}" var = f"v{index}"