From eaef7322beb5c3bd34e5cc36fbc30081a3960942 Mon Sep 17 00:00:00 2001 From: jbergner Date: Fri, 24 Apr 2026 19:48:09 +0200 Subject: [PATCH] =?UTF-8?q?Agent-Kontrolle=20und=20Offlien-Alarm=20auf=201?= =?UTF-8?q?20=20Minuten=20beschr=C3=A4nkt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_env | 1 + main.go | 213 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 207 insertions(+), 7 deletions(-) diff --git a/dot_env b/dot_env index 5b7a96f..c67db39 100644 --- a/dot_env +++ b/dot_env @@ -15,6 +15,7 @@ HTTP_IDLE_TIMEOUT=60s DETECTION_INTERVAL=1m OFFLINE_AFTER=10m +OFFLINE_ALERT_MAX=120m FAILED_LOGON_WINDOW=5m FAILED_LOGON_THRESHOLD=25 REBOOT_WINDOW=15m diff --git a/main.go b/main.go index 5ec8b66..1730c36 100644 --- a/main.go +++ b/main.go @@ -56,6 +56,13 @@ const uiTemplates = ` button { padding: 10px 14px; background: #2563eb; color: white; border: 0; border-radius: 8px; cursor: pointer; } pre { white-space: pre-wrap; word-break: break-word; background: #111827; color: #e5e7eb; padding: 16px; border-radius: 10px; } a { color: #2563eb; text-decoration: none; } + .badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: bold; } + .badge-on { background: #dcfce7; color: #166534; } + .badge-off { background: #fee2e2; color: #991b1b; } + .badge-muted { background: #e5e7eb; color: #374151; } + .inline-form { display: inline; } + button.danger { background: #dc2626; } + button.success { background: #16a34a; } @@ -63,6 +70,7 @@ const uiTemplates = `
SIEM-lite