spacepaste

  1.  
  2. # Sample configuration file for smartd. See man smartd.conf.
  3. # Home page is: http://www.smartmontools.org
  4. # $Id: smartd.conf 4120 2015-08-27 16:12:21Z samm2 $
  5. # smartd will re-read the configuration file if it receives a HUP
  6. # signal
  7. # The file gives a list of devices to monitor using smartd, with one
  8. # device per line. Text after a hash (#) is ignored, and you may use
  9. # spaces and tabs for white space. You may use '\' to continue lines.
  10. # You can usually identify which hard disks are on your system by
  11. # looking in /proc/ide and in /proc/scsi.
  12. # The word DEVICESCAN will cause any remaining lines in this
  13. # configuration file to be ignored: it tells smartd to scan for all
  14. # ATA and SCSI devices. DEVICESCAN may be followed by any of the
  15. # Directives listed below, which will be applied to all devices that
  16. # are found. Most users should comment out DEVICESCAN and explicitly
  17. # list the devices that they wish to monitor.
  18. #DEVICESCAN -a -m 'admin@myth.zone' -M exec /usr/local/bin/smartdnotify -M diminishing
  19. /dev/sda -a -m 'admin@myth.zone' -M test -M exec /usr/local/bin/smartdnotify
  20. # Alternative setting to ignore temperature and power-on hours reports
  21. # in syslog.
  22. #DEVICESCAN -I 194 -I 231 -I 9
  23. # Alternative setting to report more useful raw temperature in syslog.
  24. #DEVICESCAN -R 194 -R 231 -I 9
  25. # Alternative setting to report raw temperature changes >= 5 Celsius
  26. # and min/max temperatures.
  27. #DEVICESCAN -I 194 -I 231 -I 9 -W 5
  28. # First ATA/SATA or SCSI/SAS disk. Monitor all attributes, enable
  29. # automatic online data collection, automatic Attribute autosave, and
  30. # start a short self-test every day between 2-3am, and a long self test
  31. # Saturdays between 3-4am.
  32. #/dev/sda -a -o on -S on -s (S/../.././02|L/../../6/03)
  33. # Monitor SMART status, ATA Error Log, Self-test log, and track
  34. # changes in all attributes except for attribute 194
  35. #/dev/sdb -H -l error -l selftest -t -I 194
  36. # Monitor all attributes except normalized Temperature (usually 194),
  37. # but track Temperature changes >= 4 Celsius, report Temperatures
  38. # >= 45 Celsius and changes in Raw value of Reallocated_Sector_Ct (5).
  39. # Send mail on SMART failures or when Temperature is >= 55 Celsius.
  40. #/dev/sdc -a -I 194 -W 4,45,55 -R 5 -m admin@example.com
  41. # An ATA disk may appear as a SCSI device to the OS. If a SCSI to
  42. # ATA Translation (SAT) layer is between the OS and the device then
  43. # this can be flagged with the '-d sat' option. This situation may
  44. # become common with SATA disks in SAS and FC environments.
  45. # /dev/sda -a -d sat
  46. # A very silent check. Only report SMART health status if it fails
  47. # But send an email in this case
  48. #/dev/sdc -H -C 0 -U 0 -m admin@example.com
  49. # First two SCSI disks. This will monitor everything that smartd can
  50. # monitor. Start extended self-tests Wednesdays between 6-7pm and
  51. # Sundays between 1-2 am
  52. #/dev/sda -d scsi -s L/../../3/18
  53. #/dev/sdb -d scsi -s L/../../7/01
  54. # Monitor 4 ATA disks connected to a 3ware 6/7/8000 controller which uses
  55. # the 3w-xxxx driver. Start long self-tests Sundays between 1-2, 2-3, 3-4,
  56. # and 4-5 am.
  57. # NOTE: starting with the Linux 2.6 kernel series, the /dev/sdX interface
  58. # is DEPRECATED. Use the /dev/tweN character device interface instead.
  59. # For example /dev/twe0, /dev/twe1, and so on.
  60. #/dev/sdc -d 3ware,0 -a -s L/../../7/01
  61. #/dev/sdc -d 3ware,1 -a -s L/../../7/02
  62. #/dev/sdc -d 3ware,2 -a -s L/../../7/03
  63. #/dev/sdc -d 3ware,3 -a -s L/../../7/04
  64. # Monitor 2 ATA disks connected to a 3ware 9000 controller which
  65. # uses the 3w-9xxx driver (Linux, FreeBSD). Start long self-tests Tuesdays
  66. # between 1-2 and 3-4 am.
  67. #/dev/twa0 -d 3ware,0 -a -s L/../../2/01
  68. #/dev/twa0 -d 3ware,1 -a -s L/../../2/03
  69. # Monitor 2 SATA (not SAS) disks connected to a 3ware 9000 controller which
  70. # uses the 3w-sas driver (Linux). Start long self-tests Tuesdays
  71. # between 1-2 and 3-4 am.
  72. # On FreeBSD /dev/tws0 should be used instead
  73. #/dev/twl0 -d 3ware,0 -a -s L/../../2/01
  74. #/dev/twl0 -d 3ware,1 -a -s L/../../2/03
  75. # Same as above for Windows. Option '-d 3ware,N' is not necessary,
  76. # disk (port) number is specified in device name.
  77. # NOTE: On Windows, DEVICESCAN works also for 3ware controllers.
  78. #/dev/hdc,0 -a -s L/../../2/01
  79. #/dev/hdc,1 -a -s L/../../2/03
  80. # Monitor 3 ATA disks directly connected to a HighPoint RocketRAID. Start long
  81. # self-tests Sundays between 1-2, 2-3, and 3-4 am.
  82. #/dev/sdd -d hpt,1/1 -a -s L/../../7/01
  83. #/dev/sdd -d hpt,1/2 -a -s L/../../7/02
  84. #/dev/sdd -d hpt,1/3 -a -s L/../../7/03
  85. # Monitor 2 ATA disks connected to the same PMPort which connected to the
  86. # HighPoint RocketRAID. Start long self-tests Tuesdays between 1-2 and 3-4 am
  87. #/dev/sdd -d hpt,1/4/1 -a -s L/../../2/01
  88. #/dev/sdd -d hpt,1/4/2 -a -s L/../../2/03
  89. # HERE IS A LIST OF DIRECTIVES FOR THIS CONFIGURATION FILE.
  90. # PLEASE SEE THE smartd.conf MAN PAGE FOR DETAILS
  91. #
  92. # -d TYPE Set the device type: ata, scsi, marvell, removable, 3ware,N, hpt,L/M/N
  93. # -T TYPE set the tolerance to one of: normal, permissive
  94. # -o VAL Enable/disable automatic offline tests (on/off)
  95. # -S VAL Enable/disable attribute autosave (on/off)
  96. # -n MODE No check. MODE is one of: never, sleep, standby, idle
  97. # -H Monitor SMART Health Status, report if failed
  98. # -l TYPE Monitor SMART log. Type is one of: error, selftest
  99. # -f Monitor for failure of any 'Usage' Attributes
  100. # -m ADD Send warning email to ADD for -H, -l error, -l selftest, and -f
  101. # -M TYPE Modify email warning behavior (see man page)
  102. # -s REGE Start self-test when type/date matches regular expression (see man page)
  103. # -p Report changes in 'Prefailure' Normalized Attributes
  104. # -u Report changes in 'Usage' Normalized Attributes
  105. # -t Equivalent to -p and -u Directives
  106. # -r ID Also report Raw values of Attribute ID with -p, -u or -t
  107. # -R ID Track changes in Attribute ID Raw value with -p, -u or -t
  108. # -i ID Ignore Attribute ID for -f Directive
  109. # -I ID Ignore Attribute ID for -p, -u or -t Directive
  110. # -C ID Report if Current Pending Sector count non-zero
  111. # -U ID Report if Offline Uncorrectable count non-zero
  112. # -W D,I,C Monitor Temperature D)ifference, I)nformal limit, C)ritical limit
  113. # -v N,ST Modifies labeling of Attribute N (see man page)
  114. # -a Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198
  115. # -F TYPE Use firmware bug workaround. Type is one of: none, samsung
  116. # -P TYPE Drive-specific presets: use, ignore, show, showall
  117. # # Comment: text after a hash sign is ignored
  118. # \ Line continuation character
  119. # Attribute ID is a decimal integer 1 <= ID <= 255
  120. # except for -C and -U, where ID = 0 turns them off.
  121. # All but -d, -m and -M Directives are only implemented for ATA devices
  122. #
  123. # If the test string DEVICESCAN is the first uncommented text
  124. # then smartd will scan for devices.
  125. # DEVICESCAN may be followed by any desired Directives.
  126.