Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just configured a Debian server as follows
apt-get install smartmontools
vi /etc/default/smartmontools - and here uncommented these 2 lines
# uncomment to start smartd on system startup
start_smartd=yes
# uncomment to pass additional options to smartd on startup
smartd_opts="--interval=1800"

Then I edited /etc/smartd.conf and uncommented only this line
DEVICESCAN -S on -o on -a -m myemail@mydomain.com -s (S/../.././02|L/../../6/03)

I was wondering if this is enough for the system to send me an alert message when something goes wrong and/or if there is a way to simulate a problem and see if smartd sends me warnings by email.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You can test the configuration by adding -M test to the line that begins with DEVICESCAN. The next time you restart smartd, it will send out an email notification.

share|improve this answer
    
Thank you, that was it! –  Alex Flo Sep 12 '12 at 14:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.