Skip to content

Commit 51f8f0b

Browse files
committed
Moved ISPConfig log location for the daemon log to /var/log/ispconfig/ispconfig.log and added the logfile as option to the logfile viewer in the monitoring module.
1 parent e082978 commit 51f8f0b

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

install/tpl/config.inc.php.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ define("DB_PASSWORD",$conf["db_password"]);
105105
Logging
106106
*/
107107

108-
$conf["log_file"] = $conf["rootpath"].$conf["fs_div"]."ispconfig.log";
108+
$conf["log_file"] = '/var/log/ispconfig/ispconfig.log';
109109
$conf["log_priority"] = {ispconfig_log_priority}; // 0 = Debug, 1 = Warning, 2 = Error
110110

111111
/*

interface/web/monitor/lib/module.conf.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
'target' => 'content',
6767
'link' => 'monitor/logview.php?log=clamav');
6868

69+
$items[] = array( 'title' => "ISPConfig",
70+
'target' => 'content',
71+
'link' => 'monitor/logview.php?log=ispconfig');
72+
6973

7074
$module["nav"][] = array( 'title' => 'Logfiles',
7175
'open' => 1,

interface/web/monitor/logview.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
case 'clamav':
7676
$logfile = '/var/log/clamav/clamav.log';
7777
break;
78+
case 'ispconfig':
79+
$logfile = '/var/log/ispconfig/ispconfig.log';
80+
break;
7881
default:
7982
$logfile = '';
8083
break;

0 commit comments

Comments
 (0)