Ceci est une ancienne révision du document !
Installation
sudo apt-get install logwatch
- Il va nous demander pour configurer PostFix, on choisis de ne pas le configurer.
Notes
- scripts: /etc/logwatch/
- taper logwatch pour recevoir un rapport à l'écran …
/usr/share/logwatch/scripts/logwatch.pl
- ou taper cette commande pour expédier ce rapport par le mail du system
logwatch -mailto root@localhost
Configuration
gksudo mousepad /usr/share/logwatch/dist.conf/logwatch.conf
Detail = Med mailer = "/usr/sbin/sendmail -t" TmpDir = /tmp MailFrom = root
Et ensuite:
gksudo mousepad /usr/share/logwatch/default.conf/logwatch.conf
LogDir = /var/log TmpDir = /var/cache/logwatch MailTo = user@site.org MailFrom = Logwatch Print = No Range = yesterday Detail = Low Service = All Service = "-zz-network" # Prevents execution of zz-network service, which # prints useful network configuration info. Service = "-zz-sys" # Prevents execution of zz-sys service, which # prints useful system configuration info. Service = "-eximstats" # Prevents execution of eximstats service, which # is a wrapper for the eximstats program. mailer = "sendmail -t"