Ceci est une ancienne révision du document !


sudo apt-get install logwatch
  • scripts: /etc/logwatch/
  • taper logwatch pour recevoir un rapport ou
/usr/share/logwatch/scripts/logwatch.pl
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"
  • logwatch.1210501356.txt.gz
  • Dernière modification: Le 14/11/2008, 15:09
  • (modification externe)