mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
add script for writing to the pipe
This commit is contained in:
parent
10e79d6827
commit
191839d30f
12 changed files with 223 additions and 158 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue