From 3e12d7fd70d7da2f49e165521b9dd6a625a9c45c Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 19:11:44 +0200 Subject: [PATCH] Fix: Dashboard zeigt nur die 8 Kern-Dienste (woltguard.dashboard-Liste) Co-Authored-By: Claude Sonnet 4.6 --- app/Livewire/Ui/Nx/Dashboard.php | 9 ++++++--- config/woltguard.php | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Ui/Nx/Dashboard.php b/app/Livewire/Ui/Nx/Dashboard.php index 5961d9e..c94c0f7 100644 --- a/app/Livewire/Ui/Nx/Dashboard.php +++ b/app/Livewire/Ui/Nx/Dashboard.php @@ -79,10 +79,13 @@ class Dashboard extends Component $cached = Cache::get(CacheVer::k('health:services'), []); $rows = $cached['rows'] ?? []; - // 2) Fallback: use woltguard.php cards with active systemd/tcp probes + // 2) Fallback: nur die Dashboard-Teilmenge aus woltguard.php (aktive Probes) if (empty($rows)) { - $cards = config('woltguard.cards', []); - foreach ($cards as $key => $card) { + $allCards = config('woltguard.cards', []); + $dashKeys = config('woltguard.dashboard', array_keys($allCards)); + foreach ($dashKeys as $key) { + $card = $allCards[$key] ?? null; + if (!$card) continue; $isOk = false; foreach ($card['sources'] as $src) { if ($this->probeSource($src)) { $isOk = true; break; } diff --git a/config/woltguard.php b/config/woltguard.php index 0cd92d7..0e9a18c 100644 --- a/config/woltguard.php +++ b/config/woltguard.php @@ -2,6 +2,11 @@ return [ + // Nur diese Keys erscheinen im Dashboard-Widget + 'dashboard' => [ + 'postfix', 'dovecot', 'rspamd', 'db', 'redis', 'nginx', 'mw-ws', 'fail2ban', + ], + 'cards' => [ // Mail 'postfix' => [