Skip to content

Commit

Permalink
fix(ZMS): Update Status.php fix mailqueue status monitoring (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAFink authored Nov 8, 2024
1 parent a8fab99 commit 990eb05
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion zmsdb/src/Zmsdb/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ public function readEntity(\DateTimeImmutable $now, $includeProcessStats = true)
array_key_exists('wsrep_ready', $statusVariables) ? $statusVariables['wsrep_ready'] : 'OFF';
$entity['database']['logbin'] =
array_key_exists('log_bin', $configVariables) ? $configVariables['log_bin'] : 'OFF';

$entity['processes'] = $includeProcessStats ? $this->readProcessStats($now) : [];

if ($includeProcessStats) {
$entity['processes'] = $this->readProcessStats($now);
$outdated = $this->readOutdatedSlots();
$entity['processes']['outdated'] = $outdated['cnt'];
$entity['processes']['outdatedOldest'] = $outdated['oldest'];
$freeSlots = $this->readFreeSlots();
$entity['processes']['freeSlots'] = $freeSlots['cnt'];
}

$entity['mail'] = $this->readMailStats();
$entity['notification'] = $this->readNotificationStats();
$entity['sources']['dldb']['last'] = $this->readDdldUpdateStats();
$entity['processes']['lastCalculate'] = $this->readLastCalculateSlots();
$entity['useraccounts']['activeSessions'] = $this->getTotalActiveSessions();
$entity['useraccounts']['departments'] = $this->getActiveSessionsByBehoerdenWithScopes();

Expand Down

0 comments on commit 990eb05

Please sign in to comment.