0

On ispconfig 3 web interface, log files section under Monitor

There are several log files, one of them is Mail Log and other is ClamAV Log.

Unfortunately ClamAV log points to same file as Mail Log which is /var/log/maillog

I want to change the link of ClamAV Log to point another log file that I'll create to display daily scan results. That log file is at /var/log/clamav/manual_clamscan.log

How can I do this hyperlink change?

1

1 Answer 1

0
vim /usr/local/ispconfig/server/lib/classes/monitor_tools.inc.php

Line 1725 for redhat it checks if /var/log/clamav/clamd.log exists

case 'log_clamav':
[...]
    if ($dist == 'redhat') {
          $logfile = (is_file('/var/log/clamav/clamd.log') ? '/var/log/clamav/clamd.log' : '/var/log/maillog');
    }
[...]

It does not exist at all so I touched the file and pointed clam cron job to this log file. This also works for other log file programmed there in this php file.

problem solved

Not the answer you're looking for? Browse other questions tagged .