Fix: Dashboard zeigt nur die 8 Kern-Dienste (woltguard.dashboard-Liste)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.309
boban 2026-04-26 19:11:44 +02:00
parent c16315711d
commit 3e12d7fd70
2 changed files with 11 additions and 3 deletions

View File

@ -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; }

View File

@ -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' => [