mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-01-22 21:38:41 +00:00
Translation fixes (0 still missing)
This commit is contained in:
parent
000a06361b
commit
99ac75e57f
|
|
@ -19,42 +19,42 @@ $penetrators = $this->app->logger->getHighestPerpetrator();
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->getText('Monitoring', 'Backend', 'System') ?></h1></header>
|
||||
<header><h1><?= $this->getText('System') ?></h1></header>
|
||||
<div class="inner">
|
||||
<table class="list wf-100">
|
||||
<tbody>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'OS') ?><td><?= php_uname('s'); ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Version') ?><td><?= php_uname('v'); ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Release') ?><td><?= php_uname('r'); ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'RAMUsage') ?><td><?= memory_get_usage(true)/(1024*1024); ?> MB
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'MemoryLimit') ?><td><?= ini_get('memory_limit'); ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'SystemRAM') ?><td><?= \phpOMS\System\SystemUtils::getRAM()/(1024); ?> MB
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'CPUUsage') ?><td><?= \phpOMS\System\SystemUtils::getCpuUsage(); ?>%
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'DiskUsage') ?><td><?= round(\phpOMS\System\File\Directory::getFolderSize(ROOT_PATH)/1000000, 'Backend', true); ?> MB
|
||||
<tr><td><?= $this->getText('OS') ?><td><?= php_uname('s'); ?>
|
||||
<tr><td><?= $this->getText('Version') ?><td><?= php_uname('v'); ?>
|
||||
<tr><td><?= $this->getText('Release') ?><td><?= php_uname('r'); ?>
|
||||
<tr><td><?= $this->getText('RAMUsage') ?><td><?= memory_get_usage(true)/(1024*1024); ?> MB
|
||||
<tr><td><?= $this->getText('MemoryLimit') ?><td><?= ini_get('memory_limit'); ?>
|
||||
<tr><td><?= $this->getText('SystemRAM') ?><td><?= \phpOMS\System\SystemUtils::getRAM()/(1024); ?> MB
|
||||
<tr><td><?= $this->getText('CPUUsage') ?><td><?= \phpOMS\System\SystemUtils::getCpuUsage(); ?>%
|
||||
<tr><td><?= $this->getText('Monitoring', 'DiskUsage') ?><td><?= round(\phpOMS\System\File\Directory::getFolderSize(ROOT_PATH)/1000000, 'Backend', true); ?> MB
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->getText('Monitoring', 'Backend', 'Logs') ?></h1></header>
|
||||
<header><h1><?= $this->getText('Logs') ?></h1></header>
|
||||
<div class="inner">
|
||||
<table class="list wf-100">
|
||||
<tbody>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Emergencies') ?><td><?= $logs['emergency'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Criticals') ?><td><?= $logs['critical'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Errors') ?><td><?= $logs['error'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Warnings') ?><td><?= $logs['warning'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Alerts') ?><td><?= $logs['alert'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Notices') ?><td><?= $logs['notice'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Info') ?><td><?= $logs['info'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Debug') ?><td><?= $logs['debug'] ?? 0; ?>
|
||||
<tr><td><?= $this->l11n->getText('Monitoring', 'Backend', 'Total') ?><td><?= array_sum($logs); ?>
|
||||
<tr><td><?= $this->getText('Emergencies') ?><td><?= $logs['emergency'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Criticals') ?><td><?= $logs['critical'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Errors') ?><td><?= $logs['error'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Warnings') ?><td><?= $logs['warning'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Alerts') ?><td><?= $logs['alert'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Notices') ?><td><?= $logs['notice'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Info') ?><td><?= $logs['info'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Debug') ?><td><?= $logs['debug'] ?? 0; ?>
|
||||
<tr><td><?= $this->getText('Total') ?><td><?= array_sum($logs); ?>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->getText('Monitoring', 'Backend', 'Penetrators') ?></h1></header>
|
||||
<header><h1><?= $this->getText('Penetrators') ?></h1></header>
|
||||
<div class="inner">
|
||||
<table class="list wf-100">
|
||||
<tbody>
|
||||
|
|
|
|||
|
|
@ -33,59 +33,59 @@ $details = '* Uri: `' . trim($log['path']) . "`\n"
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<header><h1><?= $this->l11n->getText('Monitoring', 'Backend', 'Logs'); ?></h1></header>
|
||||
<header><h1><?= $this->getText('Logs'); ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
<table class="list w-100">
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText(0, 'Backend', 'ID'); ?>
|
||||
<td><?= $this->getText('ID'); ?>
|
||||
<td><i class="fa fa-anchor"></i>
|
||||
<td class="wf-100"><?= (int) $this->request->getData('id') ?? 0; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Time'); ?>
|
||||
<td><?= $this->getText('Time'); ?>
|
||||
<td><i class="fa fa-clock-o"></i>
|
||||
<td><?= $log['datetime']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Uri'); ?>
|
||||
<td><?= $this->getText('Uri'); ?>
|
||||
<td><i class="fa fa-globe"></i>
|
||||
<td><?= $log['path']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Source'); ?>
|
||||
<td><?= $this->getText('Source'); ?>
|
||||
<td><i class="fa fa-wifi"></i>
|
||||
<td><?= $log['ip']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Level'); ?>
|
||||
<td><?= $this->getText('Level'); ?>
|
||||
<td>
|
||||
<i class="fa fa-<?= in_array($log['level'], ['notice', 'info', 'debug']) ? 'info-circle' : 'warning'; ?>"></i>
|
||||
<td><?= $log['level']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Message'); ?>
|
||||
<td><?= $this->getText('Message'); ?>
|
||||
<td><i class="fa fa-commenting"></i>
|
||||
<td><?= $log['message']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'File'); ?>
|
||||
<td><?= $this->getText('File'); ?>
|
||||
<td><i class="fa fa-file"></i>
|
||||
<td><?= $log['file']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Line'); ?>
|
||||
<td><?= $this->getText('Line'); ?>
|
||||
<td><i class="fa fa-commenting"></i>
|
||||
<td><?= $log['line']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Version'); ?>
|
||||
<td><?= $this->getText('Version'); ?>
|
||||
<td><i class="fa fa-pencil"></i>
|
||||
<td><?= $log['version']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'OS'); ?>
|
||||
<td><?= $this->getText('OS'); ?>
|
||||
<td><i class="fa fa-laptop"></i>
|
||||
<td><?= $log['os']; ?>
|
||||
<tr>
|
||||
<td colspan="3"><?= $this->l11n->getText('Monitoring', 'Backend', 'Backtrace'); ?>
|
||||
<td colspan="3"><?= $this->getText('Backtrace'); ?>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<pre><?= json_encode($log['backtrace'], JSON_PRETTY_PRINT); ?></pre>
|
||||
<tr>
|
||||
<td colspan="3" style="padding-top: 10px"><a class="button" target="_blank"
|
||||
href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title=<?= urlencode($log['message']); ?>&details=<?= urlencode($details); ?>"><?= $this->l11n->getText('Monitoring', 'Backend', 'Report'); ?></a>
|
||||
href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title=<?= urlencode($log['message']); ?>&details=<?= urlencode($details); ?>"><?= $this->getText('Report'); ?></a>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -30,13 +30,13 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->getText('Monitoring', 'Backend', 'Logs'); ?></caption>
|
||||
<caption><?= $this->getText('Logs'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Timestamp'); ?>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Level'); ?>
|
||||
<td><?= $this->l11n->getText('Monitoring', 'Backend', 'Source'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('Monitoring', 'Backend', 'Message'); ?>
|
||||
<td><?= $this->getText('Timestamp'); ?>
|
||||
<td><?= $this->getText('Level'); ?>
|
||||
<td><?= $this->getText('Source'); ?>
|
||||
<td class="wf-100"><?= $this->getText('Message'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5"><?= $footerView->render(); ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user