Changes between Version 1 and Version 2 of ContributedUtilities


Ignore:
Timestamp:
Feb 25, 2011, 2:19:18 PM (14 years ago)
Author:
Gabriele Pohl
Comment:

Added HElog_smart.pl

Legend:

Unmodified
Added
Removed
Modified
  • ContributedUtilities

    v1 v2  
    55We place them on this page at your own disposal. '''We give no warranty for these, please contact the author directly''', if you have any questions!
    66
    7 It is possible to give feedback or contribute enhancements by editing the page.
     7It is also possible to give feedback or contribute enhancements by editing the page.
     8
     9----
     10
     11== Collect output of smartctl ==
     12
     13=== HElog_smart.pl by H.Ellenberger ===
     14
     15Here the description from the script author:
     16
     17In order to make more valid judgments about modern big disks above 1TB it
     18becomes more and more important to keep long term data of some parameters like
     19soft read errors, spinup time etc.
     20
     21If a file name is automatically generated using Disk model and serial no.,
     22smart data can easily be accumulated by appending it for each disk to it's
     23individual file with a separator holding also a time stamp.
     24
     25The attached program first scans /dev/disk/by-id/ for scsi/sata drives and for
     26each drive then executes smartctl -H. If bad health status is reported it will
     27be appended to the file.
     28
     29Then smartctl -a data is gathered and also appended.
     30
     31If the data is written to /var/log/SMART/ it could also become zipped and log-
     32rotated if appropriate config files are added.
     33
     34On desktop systems I run that program from /etc/init.d/ after booting and
     35before shutdown. On uninterrupted systems I recommend adding a cron job
     36running at least once per day.
     37
     38Since I'm not an expert in Perl programming any feedback and enhancements are
     39welcome.