Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to monitor disk health and send cronjob reports for errors?

I know you can use smartctl -s on -a /dev/hda to pull information but just wondering if there is a way that could be used to filter and only send if something needs attention.

Is SmartMon something I want to look into?

share|improve this question
You can write a script that wraps smartctl and only generates output when something needs attention... – voretaq7 Feb 4 '13 at 19:41
related post -… – Daniel t. Feb 4 '13 at 19:49
up vote 5 down vote accepted

You can set up smartd to run as a daemon and email you when a disk error occurs. Add -m to the relevant line of the smartd configuration file (e.g. /etc/smartd.conf or /etc/default/smartmontools). This is the line that usually begins with DEVICESCAN.

share|improve this answer

You can run smartd as a service by enabling it in the smartd config file, /etc/smartd.conf for RHEL for instance. There is an option for sending an alert message when something goes wrong.

share|improve this answer

Your Answer


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.