Changes

From Amahi Wiki
Jump to: navigation, search
65 bytes removed ,  23:53, 10 July 2014
no edit summary
First, Sendmail is off by default with Amahi installed. You will need to enable it, so do the following as '''root''' user ('''NOTE:''' Skip if using Postfix):
{{Code| service sendmail start chkconfig sendmail on}}
If you prefer to have alerts sent to an email address outside your HDA, try one of the following tutorials:
* [[Enable_Outgoing_Emails|Enable Outgoing Emails]]
This may already be installed in your system. If not, as '''root''' user do:
{{Code| yum -y install smartmontools}}
smartmontools comes with two programs; smartctl which is meant for interactive use and smartd which continuously monitors S.M.A.R.T.
You can do a quick test to see if it recognizes your drives (replace /dev/sda by the drive(s) present on your system):
{{Code| smartctl -i /dev/sda}}
To setup smartd to monitor your system automatically, edit the file '''/etc/smartd.conf''' and check for a line that begins with ''DEVICESCAN''. Comment it out by adding a ‘#’ to the beginning of the line something like this:
{{Text|Text= #DEVICESCAN -H -m root -n standby,10,q}}
Add the following line to /etc/smartd.conf:
{{Text|Text= /dev/sda -n standby -a -I 194 -W 6,45,55 -R 5 -M daily -M test -m root}}
This an example from the config file:
Start the daemon with:
{{Code| service smartd start}}
To enable start on boot:
{{Code| chkconfig smartd on}}
You can read local mail sent to root using [http://www.amahi.org/apps/webmin Webmin].
'''NOTE:''' You will receive a test email each day or so, one for each drive you identify to be monitored.
12,424

edits