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