mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-04 18:13:22 +02:00
Added counter of whois queries in server health page
This commit is contained in:
parent
4fbad774ac
commit
d62b15b4e7
2 changed files with 25 additions and 1 deletions
|
@ -197,6 +197,10 @@ class ReportsController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$db = $this->container->get('db');
|
||||
$whoisQueries = $db->selectValue("SELECT value FROM settings WHERE name = 'whois-43-queries'");
|
||||
$webWhoisQueries = $db->selectValue("SELECT value FROM settings WHERE name = 'web-whois-queries'");
|
||||
|
||||
return $this->view->render($response, 'admin/reports/serverHealth.twig', [
|
||||
'serverHealth' => $serverHealth,
|
||||
'csrfTokenName' => $csrfTokenName,
|
||||
|
@ -214,7 +218,9 @@ class ReportsController extends Controller
|
|||
'msgwStatus' => $msgwStatus,
|
||||
'msgbLogs' => $msgbLogs,
|
||||
'msgwLogs' => $msgwLogs,
|
||||
'redisStatus' => $redisStatus
|
||||
'redisStatus' => $redisStatus,
|
||||
'whoisQueries' => $whoisQueries,
|
||||
'webWhoisQueries' => $webWhoisQueries
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -221,6 +221,24 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="card card-sm">
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-auto">
|
||||
<span class="bg-green text-white avatar">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 6c0 1.657 3.582 3 8 3s8 -1.343 8 -3s-3.582 -3 -8 -3s-8 1.343 -8 3" /><path d="M4 6v6c0 1.657 3.582 3 8 3m8 -3.5v-5.5" /><path d="M4 12v6c0 1.657 3.582 3 8 3" /><path d="M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /><path d="M20.2 20.2l1.8 1.8" /></svg>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="font-weight-medium">{{ whoisQueries }} {{ __('Port 43 WHOIS Queries') }}</div>
|
||||
<div class="text-secondary">{{ webWhoisQueries }} {{ __('Web WHOIS Queries') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue