fix DOWN enum: Kuma heartbeat 0=down (was 2) #5

Merged
ic-builder merged 1 commits from ic-builder/status-enum into main 2026-09-06 20:29:53 +00:00
2 changed files with 1 additions and 1 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -199,7 +199,7 @@ func (b *bridge) handle(w http.ResponseWriter, r *http.Request) {
b.mu.Lock()
defer b.mu.Unlock()
switch status {
case 2: // DOWN (0=unknown,1=up,2=down per Kuma webhook)
case 0: // Kuma heartbeat status: 0=down, 1=up, 2=pending, 3=maintenance
if _, exists := b.open[k.Monitor.Name]; !exists {
tid, err := b.glpi.openTicketFor(k.Monitor.Name)
if err == nil && tid == 0 {