LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2009, 01:07 PM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
A lightweight SMART exception reporting solution?


Hello

Is there a lightweight SMART exception reporting solution? Ideally something that will periodically gather SMART statistics and, when there is an exception indicating a problem worthy of investigation, send an email?

smartmontools provides the base, the ability to query drives and report statistics. It would, of course, be possible to run a script periodically that runs smartmontools commands, analyses the output and, on detecting an exception, sends an email. A sophisticated implementation would send emails reporting the same problem with decreasing frequency and would infrequently send a "green light" email to assure the recipient that is was still working.

This seems such an "obviously" useful function that it may have been developed already but so far I have only found graphical utilities such as munin, GSmartControl and maybe CrystalDiskInfo which would be fine tools to run constantly in an operations centre but are overkill for a single workstation.

Best

Charles
 
Old 10-15-2009, 02:14 PM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
infact, smartmontools does support this, see man smartd...
 
Old 10-15-2009, 02:29 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Quote:
Originally Posted by doc.nice View Post
infact, smartmontools does support this, see man smartd...
Thanks doc.nice Sweet as! I had been looking at smartctl but smartd is the bees knees. Some great information written by smartmontools creator, Bruce Allen, in Linux Journal. Reading that in conjunction with the smartmond man page and following its cross-references to the smartctl page, I came up with the following line in /etc/smartd.conf
Code:
/dev/sda -a -I 194 -M diminishing m root -o on -s  (S/../.././17|L/../../6/15) -W 3,41,46
Is testing OK so far (was holding off posting until tested a little more) but I can't think of a way to test it properly without an (ideally simulated) failing HDD.
 
Old 10-15-2009, 02:51 PM   #4
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
Hi,

I use /dev/hda -a -I 194 -n standby -o on -S on -s S/../.././02 -m (myadminmailaddress) -M diminishing

but I must have missed the -W switch, will add it immediately

About the usefullness:
I already had a dying disc and must say, SMART has done its job. It told me about 3 mins before the disc finally gave up that something is bad...
I have another disc (used as swap in a private pc) that is SMART defect for more than 3 years now...
So I wouldn't give that much, but the thermal check ist quite a good indicator for real trouble in your case, I think...
 
  


Reply

Tags
email, exception, reporting


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Smart problem adding new channel in Smart-beta google01103 SUSE / openSUSE 1 11-21-2006 07:17 AM
LXer: JasperSoft’s Market-Leading Open Source Reporting Solution Now Available On salesforce.com’s AppExchange LXer Syndicated Linux News 0 10-02-2006 11:12 PM
help createing exception class from base STL exception qwijibow Programming 4 04-20-2005 05:23 AM
wine: Unhandled exception, - any solution? crm Linux - Games 0 02-19-2005 08:59 AM
Runtime Exception vs. Exception mikeshn Programming 1 09-22-2002 05:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration