I mentioned in a recent post regarding postfix smtp via Gmail that I use the logwatch utility for monitoring my systems. Ever since I found this utility I have really enjoyed the daily snapshot that it gives me of each of my systems, whether local or remote. Everything from package installed and removed, to security notifications regarding unsuccessful login attempts. Here’s how to install and configure Logwatch.
Install The Package
sudo aptitude install logwatch
The default configuration can be found in /usr/share/logwatch/default.conf/logwatch.conf. Take a look around the file, but the main thing you might want to update:
MailTo = rootupdates to
MailTo = [email protected]
I have my systems email me daily at my gmail address, so each morning I get an overview of the previous days logs.
If you have problems with the mail actually getting out you might want to check out my post regarding Postfix smtp via Gmail.