]> git.proxmox.com Git - pmg-api.git/commitdiff
Drop sa-awl output from pmg-system-report
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 28 May 2019 10:32:57 +0000 (12:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 28 May 2019 10:44:37 +0000 (12:44 +0200)
After gathering some initial experience with `pmg-system-report` it seems
that the output of `sa-awl` is not too helpful in narrowing down problems.

Additionally the output tends to be quite large (multiple MiB) on larger/
longer-running installations, leading to timeouts or problems when sending
the report to the support.

Should the AWL checks skew the SA-results in a negative way this already shows
in the logs (which log the score for each rule).

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PMG/Report.pm

index 0472b6a4c0b467c1a1c51c5271f3aa30e594c984..0fe742bad575f7f6ba9b455debb20eb09332730c 100644 (file)
@@ -9,8 +9,6 @@ $ENV{'PATH'} = '/sbin:/bin:/usr/sbin:/usr/bin';
 
 my $cmd_timeout = 10; # generous timeout
 
-my $sa_awl_db = '/root/.spamassassin/auto-whitelist';
-
 # NOTE: always add new sections to the report_order array!
 my $report_def = {
     general => {
@@ -46,7 +44,6 @@ my $report_def = {
        sub { dir2text('/etc/pmg/','(?:domains|mynetworks|tls_policy|transport)' ) },
        sub { dir2text('/etc/pmg/templates/', '[^.].*' ) },
        'pmgdb dump',
-       "[ -f '$sa_awl_db' ] && sa-awl '$sa_awl_db'",
     ],
 };