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::'''NOTE:''' <code>yum</code> (deprecated) has been replaced with <code>dnf</code> as the package manager for Fedora 23 and greater. * 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 = mailMailTo <nowiki>=user@yourisp.com</nowiki> (your email address)}}</blockquotepre>
* If you want the email in html, add this line:
<blockquote>{{Text|Output <nowikipre>Format =</nowiki> html}}</blockquotepre>
* To test, enter the command '''''logwatch''''' and go check your email.
<blockquotepre>{{Code|logwatch}}</blockquotepre>* Ensure sendmail or postfix is running or it won't work (rerun command and change '''''status''''' to '''''start''''' if not):<blockquotepre>{{Code|service sendmail status}}</blockquotepre>or<pre>service postfix status</pre>
'''Optional:'''
12,424

edits