From a1cec47d07b52e30cf95352dc294febbb9405eb2 Mon Sep 17 00:00:00 2001 From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Mon, 8 Dec 2003 22:57:34 +0000 Subject: [PATCH] Added some examples of scheduled self-testing into config file git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@1349 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- sm5/smartd.conf | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/sm5/smartd.conf b/sm5/smartd.conf index f0da61215..cd7ed7707 100644 --- a/sm5/smartd.conf +++ b/sm5/smartd.conf @@ -1,6 +1,8 @@ -# Sample configuration file for smartd. See man 5 smartd.conf. +# Sample configuration file for smartd. See man smartd.conf. + # Home page is: http://smartmontools.sourceforge.net -# $Id: smartd.conf,v 1.31 2003/10/19 05:55:01 ballen4705 Exp $ + +# $Id: smartd.conf,v 1.32 2003/12/08 22:57:34 ballen4705 Exp $ # smartd will re-read the configuration file if it receives a HUP # signal @@ -20,8 +22,11 @@ # list the devices that they wish to monitor. DEVICESCAN -# First (primary) ATA/IDE hard disk. Monitor all attributes -/dev/hda -a +# First (primary) ATA/IDE hard disk. Monitor all attributes, enable +# automatic online data collection, automatic Attribute autosave, and +# do a short self-test every day at 2am, and a long self test +# Saturdays at 3am. +/dev/hda -a -o on -S on -s (S/../.././02|L/../../6/03) # Monitor SMART status, ATA Error Log, Self-test log, and track # changes in all attributes except for attribute 194 @@ -32,16 +37,16 @@ DEVICESCAN /dev/hdc -H -m admin@example.com # First two SCSI disks. This will monitor everything that smartd can -# monitor. -/dev/sda -d scsi -/dev/sdb -d scsi +# monitor. Do extended self-tests Wednesdays at 6pm and Sundays at 1 am +/dev/sda -d scsi -s L/../../3/18 +/dev/sdb -d scsi -s L/../../7/01 # Monitor 4 ATA disks connected to a 3ware controller card which uses -# the 3w-xxxx driver. -/dev/sdc -d 3ware,0 -a -/dev/sdc -d 3ware,1 -a -/dev/sdc -d 3ware,2 -a -/dev/sdc -d 3ware,3 -a +# the 3w-xxxx driver. Do a long self-tests Sundays at 1, 2, 3, and 4 am +/dev/sdc -d 3ware,0 -a -s L/../../7/01 +/dev/sdc -d 3ware,1 -a -s L/../../7/02 +/dev/sdc -d 3ware,2 -a -s L/../../7/03 +/dev/sdc -d 3ware,3 -a -s L/../../7/04 # HERE IS A LIST OF DIRECTIVES FOR THIS CONFIGURATION FILE @@ -54,6 +59,7 @@ DEVICESCAN # -f Monitor for failure of any 'Usage' Attributes # -m ADD Send warning email to ADD for -H, -l error, -l selftest, and -f # -M TYPE Modify email warning behavior (see man page) +# -s REGE Do self-test when type/date matches regular expression (see man page) # -p Report changes in 'Prefailure' Normalized Attributes # -u Report changes in 'Usage' Normalized Attributes # -t Equivalent to -p and -u Directives -- GitLab