[CentOS] Detecting harddrive problem

Fri Feb 25 02:11:23 UTC 2011
Fajar Priyanto <fajarpri at arinet.org>

Hi all,
Recently I realize the filesystem became Read-only and there is "media
error" message in the system log. It has passed several days without
notice.
I'm thinking of setting up a script to grep that "media error" and send email.
Is there more elegant way of doing this?

Thank you.