Changes

From Amahi Wiki
Jump to: navigation, search
Use logwatch to monitor system status
'''NOTE:''' This is not working correctly at will provide the momentcapability to receive system logs via e-mail. Guidance There are many customizable features ([http://www.logwatch.org/tabs/docs/HOWTO-Customize-LogWatch.html/ Logwatch Documentation]), but this will be revised soononly identify the basic ones.
* First, open a terminal window and become '''root'''. Enter the following to install:
yum install logwatch
This will provide the capability to receive system logs via e-mail. This applies to Fedora 9 & 10. There * Settings are many customizable features ([http:stored in '''''/usr/share/logwatch/wwwdefault.conf/logwatch.org/tabs/docs/HOWTO-Customize-LogWatchconf''''' and NO changes to make it work.html/ Logwatch Documentation]) However, but this will only identify by default it sends the daily logwatch email to the basic oneslocal root mail folder. If you want to forward these emails to another (including external) account, see:
* First, open a terminal window and become '''root'''http://wiki.amahi.org/index. Enter the following to install: yum install logwatchphp/Forward_System_Emails
* Settings are stored in '''''/usr/share/If you want to send the logwatch/emails to an address different from other root emails, edit the default.conf/logwatch.conf''''' and require minor changes to make it work. Use file with your favorite editor (mine is nano) and make the following change:
** '''MailTo = root''' (line 35) to '''MailTo = (your email address)'''
* Ensure sendmail is started running ('''''service sendmail startstatus''''') or it won't work.
* to have sendmail start at every boot enter as root '''''/sbin/chkconfig sendmail on''''', otherwise you will have to manually start sendmail after a reboot or power loss.
* To test, enter the command '''''logwatch''''' and go check your email.
16

edits