add script for writing to the pipe

This commit is contained in:
Alex Tau 2025-12-19 18:26:11 +03:00
parent 10e79d6827
commit 191839d30f
12 changed files with 223 additions and 158 deletions

View file

@ -121,6 +121,9 @@ class UPSTracker:
case UPSEventType.SHUTDOWN:
severity = Severity.CRITICAL
reasons_for_severity.add("Shutting down now")
case UPSEventType.SHUTDOWN_HOSTSYNC:
severity = Severity.CRITICAL
reasons_for_severity.add("Shutdown initiated (waiting for secondaries)")
case UPSEventType.NOCOMM:
severity = Severity.CRITICAL
reasons_for_severity.add("Cannot establish communication")