mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
system: "firmware" log idea inspired by HardenedBSD
This commit is contained in:
parent
777ff4acfd
commit
913d80037d
1
plist
1
plist
@ -1575,6 +1575,7 @@
|
||||
/usr/local/www/diag_logs_ipsec.php
|
||||
/usr/local/www/diag_logs_ntpd.php
|
||||
/usr/local/www/diag_logs_openvpn.php
|
||||
/usr/local/www/diag_logs_pkg.php
|
||||
/usr/local/www/diag_logs_ppp.php
|
||||
/usr/local/www/diag_logs_proxy.php
|
||||
/usr/local/www/diag_logs_resolver.php
|
||||
|
||||
@ -685,11 +685,12 @@ function system_syslogd_start($verbose = false, $restart = false)
|
||||
* get rid of this behaviour by wrapping this local array using
|
||||
* the key as a "name" entry in the array...
|
||||
*/
|
||||
$syslogconfs['configd'] = array('facility' => array('configd.py'));
|
||||
$syslogconfs['dhcpd'] = array('facility' => array('dhcpd', 'dhcrelay', 'dhclient', 'dhcp6c'), 'local' => '/var/dhcpd/var/run/log', 'remote' => 'dhcp');
|
||||
$syslogconfs['filter'] = array('facility' => array('filterlog'), 'remote' => 'filter');
|
||||
$syslogconfs['lighttpd'] = array('facility' => array('lighttpd'));
|
||||
$syslogconfs['configd'] = array('facility' => array('configd.py'));
|
||||
$syslogconfs['gateways'] = array('facility' => array('apinger', 'dpinger'), 'remote' => 'apinger');
|
||||
$syslogconfs['lighttpd'] = array('facility' => array('lighttpd'));
|
||||
$syslogconfs['pkg'] = array('facility' => array('pkg', 'pkg-static'));
|
||||
$syslogconfs['portalauth'] = array('facility' => array('captiveportal'), 'remote' => 'portalauth');
|
||||
$syslogconfs['ppps'] = array('facility' => array('ppp'));
|
||||
$syslogconfs['resolver'] = array('facility' => array('unbound'), 'remote' => 'dns');
|
||||
|
||||
@ -88,9 +88,10 @@
|
||||
</Trust>
|
||||
<Wizard url="/wizard.php?xml=system" cssClass="fa fa-magic fa-fw"/>
|
||||
<LogFiles order="150" VisibleName="Log Files" cssClass="fa fa-eye fa-fw">
|
||||
<General order="100" VisibleName="General" url="/diag_logs.php"/>
|
||||
<Configd order="150" VisibleName="Configd" url="/configd_logs.php"/>
|
||||
<WebGUI order="200" VisibleName="Web GUI" url="/httpd_logs.php"/>
|
||||
<Configd url="/configd_logs.php"/>
|
||||
<Firmware url="/diag_logs_pkg.php"/>
|
||||
<General url="/diag_logs.php"/>
|
||||
<WebGUI VisibleName="Web GUI" url="/httpd_logs.php"/>
|
||||
</LogFiles>
|
||||
<Diagnostics order="160" cssClass="fa fa-medkit fa-fw">
|
||||
<Services url="/status_services.php">
|
||||
|
||||
6
src/www/diag_logs_pkg.php
Normal file
6
src/www/diag_logs_pkg.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$logfile = '/var/log/pkg.log';
|
||||
$logclog = true;
|
||||
|
||||
require_once 'diag_logs_template.inc';
|
||||
@ -50,6 +50,7 @@ function clear_all_log_files()
|
||||
'mail',
|
||||
'ntpd',
|
||||
'openvpn',
|
||||
'pkg',
|
||||
'poes',
|
||||
'portalauth',
|
||||
'ppps',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user