mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
clamav/log switch to new log view https://github.com/opnsense/plugins/issues/1593
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
<patterns>
|
||||
<pattern>ui/clamav/*</pattern>
|
||||
<pattern>api/clamav/*</pattern>
|
||||
<pattern>diag_logs_clamav.php*</pattern>
|
||||
<pattern>ui/diagnostics/log/clamav/clamd/*</pattern>
|
||||
<pattern>api/diagnostics/log/clamav/clamd/*</pattern>
|
||||
<pattern>ui/diagnostics/log/clamav/freshclam/*</pattern>
|
||||
<pattern>api/diagnostics/log/clamav/freshclam/*</pattern>
|
||||
</patterns>
|
||||
</page-services-clamav>
|
||||
</acl>
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
<Services>
|
||||
<ClamAV cssClass="fa fa-stethoscope">
|
||||
<Configuration order="10" url="/ui/clamav/general/index"/>
|
||||
<Log VisibleName="Log File" order="20" url="/diag_logs_clamav.php?type=clamd">
|
||||
<More url="/diag_logs_clamav.php*" visibility="hidden"/>
|
||||
</Log>
|
||||
<LogFile VisibleName="Log / Clamd" order="20" url="/ui/diagnostics/log/clamav/clamd"/>
|
||||
<LogFile VisibleName="Log / Freshclam" order="30" url="/ui/diagnostics/log/clamav/freshclam"/>
|
||||
</ClamAV>
|
||||
</Services>
|
||||
</menu>
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
<?php
|
||||
|
||||
$type = 'clamd';
|
||||
if (isset($_GET['type']) && ($_GET['type'] === 'clamd' || $_GET['type'] === 'freshclam')) {
|
||||
$type = $_GET['type'];
|
||||
}
|
||||
|
||||
$logfile = "/var/log/clamav/{$type}.log";
|
||||
$logclog = false;
|
||||
$logsplit = 5;
|
||||
|
||||
$logpills = array();
|
||||
$logpills[] = array(gettext('Clamd'), true, '/diag_logs_clamav.php?type=clamd');
|
||||
$logpills[] = array(gettext('Freshclam'), false, '/diag_logs_clamav.php?type=freshclam');
|
||||
|
||||
$service_hook = 'clamav';
|
||||
|
||||
require_once 'diag_logs_template.inc';
|
||||
Reference in New Issue
Block a user