Changes

From SME Server
Jump to navigationJump to search
No change in size ,  14:57, 12 July 2017
m
→‎Mail messages in html: correct line number
Line 1: Line 1: −
Logwatch is a program that analyzes the server logs in /var/logs to detect errors and warnings such as, for exapmple, attempts unsuccessful of authentication, mail delivery errors ecc...
+
Logwatch is a program that analyzes the server logs in /var/logs to detect errors and warnings such as, for example, attempts unsuccessful of authentication, mail delivery errors ecc...
 
All logs will be monitored, and an email summarizing the full report will be sent to the administrator of the Sme (admin) every night.
 
All logs will be monitored, and an email summarizing the full report will be sent to the administrator of the Sme (admin) every night.
 
To install the package:
 
To install the package:
Line 18: Line 18:  
If you want the mail message in html format you must edit the main perl script with your favourite editor (mc, nano, joe, vi....):
 
If you want the mail message in html format you must edit the main perl script with your favourite editor (mc, nano, joe, vi....):
 
  /usr/share/logwatch/scripts/logwatch.pl
 
  /usr/share/logwatch/scripts/logwatch.pl
find the line (it should be line 78):
+
find the line (it should be line 85):
 
  $Config{'output'} = "unformatted";
 
  $Config{'output'} = "unformatted";
 
and modify it in:
 
and modify it in:
 
  $Config{'output'} = "html";
 
  $Config{'output'} = "html";
 +
 
===Parsing Fetchmail log===
 
===Parsing Fetchmail log===
 
The actual release does not contain a script to parse /var/maillog; you can simply add a script and the related conf to do this.
 
The actual release does not contain a script to parse /var/maillog; you can simply add a script and the related conf to do this.
12

edits

Navigation menu