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
parent
c16315711d
commit
3e12d7fd70
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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' => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue