2017-12-09 14:17:15 +02:00
|
|
|
<?php
|
2018-10-11 11:59:23 +02:00
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
|
2017-12-09 14:17:15 +02:00
|
|
|
|
|
|
|
if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admin") {
|
2018-10-11 11:59:23 +02:00
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php';
|
2017-12-09 14:17:15 +02:00
|
|
|
$_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
|
2020-01-11 12:00:56 +02:00
|
|
|
$solr_status = (preg_match("/^([yY][eE][sS]|[yY])+$/", $_ENV["SKIP_SOLR"])) ? false : solr_status();
|
2020-01-11 12:22:08 +02:00
|
|
|
$clamd_status = (preg_match("/^([yY][eE][sS]|[yY])+$/", $_ENV["SKIP_CLAMD"])) ? false : true;
|
2021-02-11 10:34:08 +02:00
|
|
|
$xmpp_status = xmpp_control('status');
|
2017-12-09 14:17:15 +02:00
|
|
|
?>
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
2018-12-01 04:33:16 +02:00
|
|
|
<li role="presentation" class="active"><a href="#tab-containers" aria-controls="tab-containers" role="tab" data-toggle="tab"><?=$lang['debug']['system_containers'];?></a></li>
|
|
|
|
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#"><?=$lang['debug']['logs'];?>
|
2017-12-09 14:17:15 +02:00
|
|
|
<span class="caret"></span></a>
|
|
|
|
<ul class="dropdown-menu">
|
2018-08-03 20:31:33 +02:00
|
|
|
<li role="presentation"><span class="dropdown-desc"><?=$lang['debug']['in_memory_logs'];?></span></li>
|
2017-12-09 14:17:15 +02:00
|
|
|
<li role="presentation"><a href="#tab-postfix-logs" aria-controls="tab-postfix-logs" role="tab" data-toggle="tab">Postfix</a></li>
|
|
|
|
<li role="presentation"><a href="#tab-dovecot-logs" aria-controls="tab-dovecot-logs" role="tab" data-toggle="tab">Dovecot</a></li>
|
|
|
|
<li role="presentation"><a href="#tab-sogo-logs" aria-controls="tab-sogo-logs" role="tab" data-toggle="tab">SOGo</a></li>
|
2018-02-01 14:28:17 +02:00
|
|
|
<li role="presentation"><a href="#tab-netfilter-logs" aria-controls="tab-netfilter-logs" role="tab" data-toggle="tab">Netfilter</a></li>
|
2017-12-09 14:17:15 +02:00
|
|
|
<li role="presentation"><a href="#tab-autodiscover-logs" aria-controls="tab-autodiscover-logs" role="tab" data-toggle="tab">Autodiscover</a></li>
|
|
|
|
<li role="presentation"><a href="#tab-watchdog-logs" aria-controls="tab-watchdog-logs" role="tab" data-toggle="tab">Watchdog</a></li>
|
|
|
|
<li role="presentation"><a href="#tab-acme-logs" aria-controls="tab-acme-logs" role="tab" data-toggle="tab">ACME</a></li>
|
|
|
|
<li role="presentation"><a href="#tab-api-logs" aria-controls="tab-api-logs" role="tab" data-toggle="tab">API</a></li>
|
2018-12-15 22:24:39 +02:00
|
|
|
<li role="presentation"><a href="#tab-api-rl" aria-controls="tab-api-rl" role="tab" data-toggle="tab">Ratelimits</a></li>
|
2018-08-03 20:31:33 +02:00
|
|
|
<li role="presentation"><span class="dropdown-desc"><?=$lang['debug']['external_logs'];?></span></li>
|
|
|
|
<li role="presentation"><a href="#tab-rspamd-history" aria-controls="tab-rspamd-history" role="tab" data-toggle="tab">Rspamd</a></li>
|
|
|
|
<li role="presentation"><span class="dropdown-desc"><?=$lang['debug']['static_logs'];?></span></li>
|
|
|
|
<li role="presentation"><a href="#tab-ui" aria-controls="tab-ui" role="tab" data-toggle="tab">mailcow UI</a></li>
|
2021-06-04 14:29:39 +02:00
|
|
|
<li role="presentation"><a href="#tab-sasl" aria-controls="tab-sasl" role="tab" data-toggle="tab">SASL</a></li>
|
2017-12-09 14:17:15 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="tab-content" style="padding-top:20px">
|
2018-08-03 20:31:33 +02:00
|
|
|
<div class="debug-log-info"><?=sprintf($lang['debug']['log_info'], getenv('LOG_LINES') + 1);?></div>
|
2018-02-22 10:16:49 +02:00
|
|
|
<?php
|
2018-10-23 21:14:57 +02:00
|
|
|
$exec_fields = array('cmd' => 'system', 'task' => 'df', 'dir' => '/var/vmail');
|
2018-07-29 00:38:22 +02:00
|
|
|
$vmail_df = explode(',', json_decode(docker('post', 'dovecot-mailcow', 'exec', $exec_fields), true));
|
2018-02-22 10:16:49 +02:00
|
|
|
?>
|
2018-02-27 11:29:13 +02:00
|
|
|
<div role="tabpanel" class="tab-pane active" id="tab-containers">
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="panel panel-default">
|
2018-02-22 10:16:49 +02:00
|
|
|
<div class="panel-heading">
|
2018-12-01 04:33:16 +02:00
|
|
|
<h3 class="panel-title"><?=$lang['debug']['disk_usage'];?></h3>
|
2018-02-22 10:16:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3">
|
2021-05-22 12:13:37 +02:00
|
|
|
<p><i class="bi bi-hdd-fill"></i> <?=$vmail_df[0];?></p>
|
2019-10-02 19:23:09 +02:00
|
|
|
<p><?=$vmail_df[2];?> / <?=$vmail_df[1];?> (<?=$vmail_df[4];?>)</p>
|
2018-02-22 10:16:49 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<div class="progress">
|
2019-10-02 19:23:09 +02:00
|
|
|
<div class="progress-bar progress-bar-info" role="progressbar" style="width:<?=$vmail_df[4];?>"></div>
|
2018-02-22 10:16:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-01-16 11:50:34 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2019-01-16 23:20:01 +02:00
|
|
|
<h3 class="panel-title"><?=$lang['debug']['solr_status'];?></h3>
|
2019-01-16 11:50:34 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3">
|
2021-02-11 10:34:08 +02:00
|
|
|
<p><img class="img-responsive" alt="Solr Logo" width="128px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABlCAYAAAAI2qyuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAXEUAAFxFAbktYiwAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuNWRHWFIAABv7SURBVHhe7V0JuBxVlX4JMy6jM4qOC4rp6qWq+jW+ruoXkIjoS1d3EhYXRvNkFHFBYECUAXGAASEOyiLIrigOEpDoACIqwogLiwMSkIghYF4viSFhiUGWCAQIyXuZ/9w+3V3VdXtfee/+33e+16/uqXtv1T2n7j33nnvukIJCP7BjbOzvsgt0O5cyjsymzG9mU8YvcylzIucYT2Ydczt+7xDkGFuR/hf8XplxzHG6d20qauSSkfCSJUOzRWYKCtMBE3uZ/5hxjE9A4K+FEmwuKUFj9Nd1Y9brdwwNzco6xr10DXk8DAX77kTaXEQKx8UoKLz8AGE+D73BcxVC3zBl09HPUz6ZpOHI0kEboXhnrU3H5ogCFRQGHSvmzv17+stf/ZaVA71EppgXFO0Xcp4CYai2LZeKLs2m9BDxKygMHEg4Mynz+kzK2IP+X52KvlEmzI1SPml+kPLB8CyOXmJKxuMnYyvoG7l9Iv9E9yoo9B3Xjg/thC/8cegtnsffFyGcr6TrBWNcJsQNkGPeIjIHkO8yKU9teiSXiryfs1BQ6A8eWhTdBV/3W4qCid/3c9IQ9QAugW2YoGSTeSc6Snn8KTkcKAyf5Ly1iHudi9eNBV4lKqSg0Evk0tF5EN7HPILpmN/l5CEMdY71pDVKjnkFZ0HDqwulPE1QJmneM5E238ZZKih0H3ln+AB8oV/wC6TxOWYhBfmGP702offYknX0t9P9Dy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:00
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-info" role="progressbar" style="width:<?=round($solr_status['jvm']['memory']['raw']['used%']);?>%"></div>
|
|
|
|
</div>
|
|
|
|
<p><?=$lang['debug']['jvm_memory_solr'];?>: <?=$solr_status['jvm']['memory']['total'] - $solr_status['jvm']['memory']['free'];?> / <?=$solr_status['jvm']['memory']['total'];?>
|
|
|
|
(<?=round($solr_status['jvm']['memory']['raw']['used%']);?>%)</p>
|
|
|
|
<hr>
|
2021-02-11 10:34:08 +02:00
|
|
|
<p><?=$lang['debug']['uptime'];?>: ~<?=round($solr_status['status']['dovecot-fts']['uptime'] / 1000 / 60 / 60);?>h</p>
|
|
|
|
<p><?=$lang['debug']['started_at'];?>: <span class="parse_date"><?=$solr_status['status']['dovecot-fts']['startTime'];?></span></p>
|
|
|
|
<p><?=$lang['debug']['last_modified'];?>: <span class="parse_date"><?=$solr_status['status']['dovecot-fts']['index']['lastModified'];?></span></p>
|
|
|
|
<p><?=$lang['debug']['size'];?>: <?=$solr_status['status']['dovecot-fts']['index']['size'];?></p>
|
2021-05-23 09:49:36 +02:00
|
|
|
<p><i class="bi bi-file-text"></i> <?=$lang['debug']['docs'];?>: <?=$solr_status['status']['dovecot-fts']['index']['numDocs'];?></p>
|
2019-01-16 11:50:34 +02:00
|
|
|
<?php
|
|
|
|
else:
|
|
|
|
?>
|
2019-01-16 23:20:01 +02:00
|
|
|
<p><?=$lang['debug']['solr_dead'];?></p>
|
2019-01-16 11:50:34 +02:00
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-11 10:34:08 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title"><?=$lang['debug']['xmpp_status'];?></h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<p><img class="img-responsive" alt="XMPP Logo" width="128px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAAlwSFlzAAAJcwAACXMB+Yg9ogAAAqNQTFRFR3BMEERaAAAAAAAAAAAAAAAAAAAAAAAAdIFfAAAABBEVAAAAAAAAAAAAAAAAFYSszZA8BxUkAAAAAAAAAAAAmsplAAAAn81nFYi7AAAAAAAAF3utAAAA52wfEpbK4mcg5WYgncxnD3OmAAAAnsxnAAAAAAAA5mwg520gEZbJAAAA0FYjoM5m6W0fEpfLAAAAR5VD3WkjEWGRE26fnctn6W0fE6ban85noc9o5mwhAAAAAAAAFHeq6m0fAAAAoM5nAAAAATtsATlqoc5mAjlrAjhqATdqATxt6W0eEp/SE6LXEmOUDmibE5DDzVokEmaXUZlIATVm6W0f52wgE5/T42simL5fulouAAAADnuvslw4FIm8m8loS45P6W0eAAAAAjxtE6/kD5zRADJiATJjD5zR52sgwFYprlMxDnCiK2SIEmCSD4C0nMpnTZZGnVxBEnaom8hnoc1nBFCDEq/kP4tQBk2AErLnFqrcATBhwlQoEHutkL9oSIddTZJHQZc7F3CiSpBHE7TpFLPouVMo4mUfgbVdQYxDoG05AAAAoM5n6W0fQ5Y52VQeCnirDYi8ATdpDpHGBUx+BEl7Az9xBEV3A0J0BVKFBU+BBlaIEqreR5k8BlyOBlmLEq3iEaDUEpzREqPXAjxtEZbKB1+SEqbbE7TpCGKVEZnNErDlCGaYCWmcC3OmCW+iTJtBDH+zCWyf5WcfC3yw6GsfDIO24WAe3lseDYzA21YeATFiVqJC1lYhm8tlFY3AGZPEd7VTicFcYqlIf7pWG3GdS5tNxV0vlshiOodqSJlYIYamJKLDa69NkMVfj2RQ0og0FoS1o8pkMZ+Qj3dnQaBtPXeTSG+CMaedmnBaZoKIY2RpHXeJKpCEzFsqn15DP4qmtqBLcmZPJ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OgG8UdcTXYpICit/wVIcei0mgM4f27UZ0sBgiw37ARC6FeF8J0yfnbusksBREkTXYbTv4/Ul0qBheO+n8B6HMLr8ZFbAxw/o7mlZ+SiooQO/Lywdl4gw8sTYfvtHoFKwAsyyxGw+FvR+O3pbSv8g6rDjDsCVP3J+Ti8svbuK3kUrMgriEJWIJRQsYQKHyvJUgikMASXZNJ+2c/hF9wOiw8Hzwot2Lq9QAtfg8a0drk/tVcBwnf3gr67bTtz6rFFoC0MAQ5r9/tJjZlK7bt7vwLRF64QY8jrIIf+s+cOJ/lBC46KZU/3wh2PEj3T4CIb5KAU48q5R/ZYymHi7U/DO29b+NB29yqTH3tyL3ybMHT2mVzrBFmoSG7hQ09lmPT4+LNPLgIfQlmXhIxMX7Zvjwf6K02hHFIQQQTxj0J8FESc7qG4KIwE2iRSPWojF2uIVC+N5U7ER+p/wR2V5gRIi9eOTIEHnBGKp3FOjGjKIiFNPRqp/BXq5DFtFuQQJZxwThqv1yNTYpCZmoMUJ/lbI+CMIgaznO4JKLaR+gSUG9FjEEbumGQkD/igCIRrl8fFeCTgnCQbEHBO0avCBBwDlDQyD1UE3TEh4MxRr452eiYAEqZPIFRXB+O0/CQgfzEpEk9gEk5evFOHwLQwjNmJMeqNIgLR6pkpG5BNgu74SkQnE2MnoR/jGWbonsPQoQ3UIY1ABPG1Ep6ZqRKYQJ7uI+CBeP09Fc7rXVyhEIE4KItQ+NV5Doo/3pAAumCWSEBK5NXMMAinMjuTq
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<?php
|
|
|
|
if ($xmpp_status !== false) {
|
|
|
|
?>
|
2021-02-11 22:09:46 +02:00
|
|
|
<p><?=$lang['debug']['online_users'];?>: <?=(empty($xmpp_status['onlineusers'])) ? '-' : $xmpp_status['onlineusers'];?></p>
|
2021-02-11 10:34:08 +02:00
|
|
|
<p><?=$lang['debug']['started_at'];?>: <span class="parse_s_ago"><?=$xmpp_status['uptimeseconds'];?></span></p>
|
|
|
|
<?php
|
|
|
|
if (!empty($xmpp_status['muc_online_rooms'])) {
|
|
|
|
?>
|
|
|
|
<p>MUCs:</p>
|
|
|
|
<ol>
|
|
|
|
<?php
|
|
|
|
foreach ($xmpp_status['muc_online_rooms'] as $room) {
|
|
|
|
?>
|
|
|
|
<li><a href="xmpp:<?=$room;?>?message"><?=$room;?></a></li>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ol>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
?>
|
|
|
|
<p><?=$lang['debug']['xmpp_dead'];?></p>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-22 10:16:49 +02:00
|
|
|
<div class="panel panel-default">
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="panel-heading">
|
2018-12-01 04:33:16 +02:00
|
|
|
<h3 class="panel-title"><?=$lang['debug']['containers_info'];?></h3>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<ul class="list-group">
|
|
|
|
<?php
|
2018-07-29 00:38:22 +02:00
|
|
|
$containers = (docker('info'));
|
2020-01-11 12:00:56 +02:00
|
|
|
ksort($containers);
|
2018-07-29 00:38:22 +02:00
|
|
|
foreach ($containers as $container => $container_info) {
|
2020-01-10 21:48:35 +02:00
|
|
|
if ($container == 'clamd-mailcow' && $clamd_status === false) { continue; }
|
|
|
|
if ($container == 'solr-mailcow' && $solr_status === false) { continue; }
|
2018-07-29 00:38:22 +02:00
|
|
|
?>
|
|
|
|
<li class="list-group-item">
|
|
|
|
<?=$container . ' (' . $container_info['Config']['Image'] . ')';?>
|
|
|
|
<?php
|
|
|
|
date_default_timezone_set('UTC');
|
|
|
|
$StartedAt = date_parse($container_info['State']['StartedAt']);
|
|
|
|
if ($StartedAt['hour'] !== false) {
|
|
|
|
$date = new \DateTime();
|
|
|
|
$date->setTimestamp(mktime(
|
|
|
|
$StartedAt['hour'],
|
|
|
|
$StartedAt['minute'],
|
|
|
|
$StartedAt['second'],
|
|
|
|
$StartedAt['month'],
|
|
|
|
$StartedAt['day'],
|
|
|
|
$StartedAt['year']));
|
|
|
|
$user_tz = new DateTimeZone(getenv('TZ'));
|
|
|
|
$date->setTimezone($user_tz);
|
|
|
|
$started = $date->format('r');
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$started = '?';
|
|
|
|
}
|
|
|
|
?>
|
2021-02-11 10:34:08 +02:00
|
|
|
<small>(<?=$lang['debug']['started_on'];?> <span class="parse_date"><?=$started;?></span>),
|
2018-12-01 04:33:16 +02:00
|
|
|
<a href data-toggle="modal" data-container="<?=$container;?>" data-target="#RestartContainer"><?=$lang['debug']['restart_container'];?></a></small>
|
2021-05-22 12:13:37 +02:00
|
|
|
<i class="pull-right bi <?=($container_info['State'] !== false && !empty($container_info['State'])) ? (($container_info['State']['Running'] == 1) ? 'bi-app-indicator text-success' : 'bi-app text-danger') : 'default'; ?>"></i>
|
2018-07-29 00:38:22 +02:00
|
|
|
</li>
|
2017-12-09 14:17:15 +02:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-postfix-logs">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">Postfix <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="postfix_log" data-log-url="postfix" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="postfix_log" data-log-url="postfix" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_postfix_logs" data-table="postfix_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="postfix_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-08-03 20:31:33 +02:00
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-ui">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">mailcow UI <span class="badge badge-info table-lines"></span>
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="mailcow_ui" data-table="ui_logs" data-log-url="ui" data-nrows="1000">+ 1000</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="mailcow_ui" data-table="ui_logs" data-log-url="ui" data-nrows="10000">+ 10000</button>
|
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_ui_logs" data-table="ui_logs"><?=$lang['admin']['refresh'];?></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="ui_logs"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-06-04 14:29:39 +02:00
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-sasl">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">SASL <span class="badge badge-info table-lines"></span>
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="sasl_log_table" data-table="sasl_logs" data-log-url="ui" data-nrows="1000">+ 1000</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="sasl_log_table" data-table="sasl_logs" data-log-url="ui" data-nrows="10000">+ 10000</button>
|
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_sasl_logs" data-table="sasl_logs"><?=$lang['admin']['refresh'];?></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="sasl_logs"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-12-09 14:17:15 +02:00
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-dovecot-logs">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">Dovecot <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="dovecot_log" data-log-url="dovecot" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="dovecot_log" data-log-url="dovecot" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_dovecot_logs" data-table="dovecot_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="dovecot_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-sogo-logs">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">SOGo <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="sogo_log" data-log-url="sogo" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="sogo_log" data-log-url="sogo" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_sogo_logs" data-table="sogo_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="sogo_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-02-01 14:28:17 +02:00
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-netfilter-logs">
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">Netfilter <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
2018-02-01 14:28:17 +02:00
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="netfilter_log" data-log-url="netfilter" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="netfilter_log" data-log-url="netfilter" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_netfilter_logs" data-table="netfilter_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
2018-02-01 14:28:17 +02:00
|
|
|
<table class="table table-striped table-condensed" id="netfilter_log"></table>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-rspamd-history">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">Rspamd history <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="rspamd_history" data-table="rspamd_history" data-log-url="rspamd-history" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="rspamd_history" data-table="rspamd_history" data-log-url="rspamd-history" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_rspamd_history" data-table="rspamd_history"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2020-06-27 14:06:42 +02:00
|
|
|
<legend><?=$lang['debug']['chart_this_server'];?></legend>
|
2019-11-11 09:14:02 +02:00
|
|
|
<div id="chart-container">
|
|
|
|
<canvas id="rspamd_donut" style="width:100%;height:400px"></canvas>
|
|
|
|
</div>
|
2020-06-27 14:06:42 +02:00
|
|
|
<legend><?=$lang['debug']['history_all_servers'];?></legend>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed log-table" id="rspamd_history"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-autodiscover-logs">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">Autodiscover <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="autodiscover_log" data-table="autodiscover_log" data-log-url="autodiscover" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="autodiscover_log" data-table="autodiscover_log" data-log-url="autodiscover" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_autodiscover_logs" data-table="autodiscover_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="autodiscover_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-watchdog-logs">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">Watchdog <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="watchdog" data-table="watchdog_log" data-log-url="watchdog" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="watchdog" data-table="watchdog_log" data-log-url="watchdog" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_watchdog_logs" data-table="watchdog_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="watchdog_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-acme-logs">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">ACME <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="acme_log" data-log-url="acme" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="general_syslog" data-table="acme_log" data-log-url="acme" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_acme_logs" data-table="acme_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="acme_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-api-logs">
|
|
|
|
<div class="panel panel-default">
|
2018-07-22 11:03:32 +02:00
|
|
|
<div class="panel-heading">API <span class="badge badge-info table-lines"></span>
|
2017-12-09 14:17:15 +02:00
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="apilog" data-table="api_log" data-log-url="api" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="apilog" data-table="api_log" data-log-url="api" data-nrows="1000">+ 1000</button>
|
2018-07-22 11:03:32 +02:00
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_api_logs" data-table="api_log"><?=$lang['admin']['refresh'];?></button>
|
2017-12-09 14:17:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="api_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-12-15 22:24:39 +02:00
|
|
|
<div role="tabpanel" class="tab-pane" id="tab-api-rl">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">Ratelimits <span class="badge badge-info table-lines"></span>
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="rllog" data-table="rl_log" data-log-url="ratelimited" data-nrows="100">+ 100</button>
|
|
|
|
<button class="btn btn-xs btn-default add_log_lines" data-post-process="rllog" data-table="rl_log" data-log-url="ratelimited" data-nrows="1000">+ 1000</button>
|
|
|
|
<button class="btn btn-xs btn-default refresh_table" data-draw="draw_rl_logs" data-table="rl_log"><?=$lang['admin']['refresh'];?></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p class="help-block"><?=$lang['admin']['hash_remove_info'];?></p>
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-striped table-condensed" id="rl_log"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-12-09 14:17:15 +02:00
|
|
|
</div> <!-- /tab-content -->
|
|
|
|
</div> <!-- /col-md-12 -->
|
|
|
|
</div> <!-- /row -->
|
|
|
|
</div> <!-- /container -->
|
|
|
|
<?php
|
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/modals/debug.php';
|
|
|
|
?>
|
|
|
|
<script type='text/javascript'>
|
|
|
|
<?php
|
|
|
|
$lang_admin = json_encode($lang['admin']);
|
|
|
|
echo "var lang = ". $lang_admin . ";\n";
|
|
|
|
echo "var csrf_token = '". $_SESSION['CSRF']['TOKEN'] . "';\n";
|
|
|
|
echo "var log_pagination_size = '". $LOG_PAGINATION_SIZE . "';\n";
|
2019-10-02 19:23:09 +02:00
|
|
|
|
2017-12-09 14:17:15 +02:00
|
|
|
?>
|
|
|
|
</script>
|
|
|
|
<?php
|
2019-01-31 16:45:31 +02:00
|
|
|
$js_minifier->add('/web/js/site/debug.js');
|
2017-12-09 14:17:15 +02:00
|
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/footer.inc.php';
|
2017-12-11 10:43:43 +02:00
|
|
|
}
|
|
|
|
else {
|
2017-12-09 14:17:15 +02:00
|
|
|
header('Location: /');
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
?>
|