feat(fleet): adopt crostini as canonical node identifier for Chromebook; add provision-crostini alias

This commit is contained in:
Kryštof Pešek
2026-11-05 20:34:59 +01:00
parent 96cc547666
commit c55b114fa1
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ def main():
alert = ""
if hostname == "boxC" and mount == "/mnt/kof17" and disk_free < 3.0:
alert = f"kof17 CRITICAL: {disk_free}G free"
elif hostname == "penguin" and disk_free < 1.0:
elif hostname in ("penguin", "crostini") and disk_free < 1.0:
alert = f"crostini LOW DISK: {disk_free}G free"
alert = f"penguin LOW DISK: {disk_free}G free"
elif bat_pct >= 0 and bat_pct <= 15:
alert = f"{hostname} BATTERY CRITICAL: {bat_pct}%"