159
================== ========== ===========================================
160
Option Default Description
161
------------------ ---------- -------------------------------------------
162
log_facility LOG_LOCAL0 Syslog log facility
163
log_level INFO Log level
164
device_dir /srv/node Directory devices are mounted under
165
minutes 60 Number of minutes to look back in
167
error_limit 1 Number of errors to find before a device
169
================== ========== ===========================================
171
This script has only been tested on Ubuntu 10.04, so if you are using a
172
different distro or OS, some care should be taken before using in production.
159
================== ============== ===========================================
160
Option Default Description
161
------------------ -------------- -------------------------------------------
162
log_facility LOG_LOCAL0 Syslog log facility
163
log_level INFO Log level
164
device_dir /srv/node Directory devices are mounted under
165
minutes 60 Number of minutes to look back in
167
error_limit 1 Number of errors to find before a device
169
log_file_pattern /var/log/kern* Location of the log file with globbing
170
pattern to check against device errors
171
regex_pattern_X (see below) Regular expression patterns to be used to
172
locate device blocks with errors in the
174
================== ============== ===========================================
176
The default regex pattern used to locate device blocks with errors are
177
`\berror\b.*\b(sd[a-z]{1,2}\d?)\b` and `\b(sd[a-z]{1,2}\d?)\b.*\berror\b`.
178
One is able to overwrite the default above by providing new expressions
179
using the format `regex_pattern_X = regex_expression`, where `X` is a number.
181
This script has been tested on Ubuntu 10.04 and Ubuntu 12.04, so if you are
182
using a different distro or OS, some care should be taken before using in production.