Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
* First, open a terminal window and become '''root'''. Enter the following to install:
<blockquotepre>{{Code|yum install logwatch}}</blockquotepre>
* You can customize the settings by adding options to '''''/etc/logwatch/conf/logwatch.conf'''''. By default it sends the daily logwatch email to the local root mail box. To change it, add this line (change user@yourisp.com to desired email address):
<blockquotepre>{{Text|Output <nowiki>=</nowiki> mailMailTo <nowiki>=</nowiki> user@yourisp.com}}</blockquotepre>
* If you want the email in html, add this line:
<blockquotepre>{{Text|Format <nowiki>=</nowiki> html}}</blockquotepre>
* To test, enter the command '''''logwatch''''' and go check your email.
<blockquotepre>{{Code|logwatch}}</blockquotepre>
* Ensure sendmail or postfix is running (rerun command and change '''''status''''' to '''''start''''' if not):
<blockquotepre>{{Code|service sendmail status}}</pre>
or
{{Code|<pre>service postfix status}}</blockquotepre>
'''Optional:'''
12,424

edits