%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/proc/self/root/usr/share/webmin/mysql/ |
Upload File : |
# Contains a function to supply the syslog module with extra logs
require 'mysql-lib.pl';
# syslog_getlogs()
# Returns a list of structures containing extra log files known to this module
sub syslog_getlogs
{
my $conf = &get_mysql_config();
my ($mysqld) = grep { $_->{'name'} eq 'mysqld_safe' ||
$_->{'name'} eq 'safe_mysqld' } @$conf;
my ($mariadb) = grep { $_->{'name'} eq 'mariadb' } @$conf;
my @rv;
# Find the error log
my $log;
if ($mysqld) {
$log = &find_value("err-log", $mysqld->{'members'});
}
if ($mariadb && !$log) {
$log = &find_value("log_error", $mariadb->{'members'});
if ($log !~ /^\//) {
my $datadir = $mysqld ?
&find_value("datadir", $mysqld->{'members'}) : undef;
if ($datadir) {
$log = $datadir."/".$log;
}
else {
$log = undef;
}
}
}
if ($log) {
push(@rv, { 'file' => $log,
'desc' => $text{'syslog_desc'},
'active' => 1,
} );
}
# Find the query log
my $qlog;
if ($mysqld) {
$qlog = &find_value("log", $mysqld->{'members'});
}
if ($qlog) {
push(@rv, { 'file' => $qlog,
'desc' => $text{'syslog_logdesc'},
'active' => 1,
} );
}
return @rv;
}