Logwatch unter Ubuntu Hardy

Installation

sudo apt-get install logwatch

Neue Templates für Postfix und Amavis

http://www.mikecappella.com/logwatch/

Die Archive entpacken, in das jeweilige Verzeichnis wechseln darin

sudo make install-logwatch

ausführen.

Aufruf von logwatch

sudo logwatch --print --service postfix --service sshd --service amavis --range today --detail 1

Mehr Informationen in der Manpage: http://manpages.ubuntu.com/manpages/hardy/en/man8/logwatch.8.html

Regelmäßiger Aufruf über die crontab

Dieser Eintrag sorgt dafür das die Ausgabe von logwatch um 0:00 Uhr an die am Ende angegebene E-Mail Adresse gesendet (eingerichteter Mailserver vorrausgesetzt).

0 0 * * *    logwatch --print --service postfix --service sshd --service amavis --range today --detail 1 | mail admin@example.com

Related Links

/var/www/virtual/ben/wiki.firefly-it.de/data/pages/linux/software/server/logwatch.txt · Last modified: 2009/05/07 12:35 by zero
Back to top
CC Attribution-Noncommercial-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0