Opened 15 years ago
Closed 15 years ago
#113 closed defect (fixed)
SMARTD_DEVICE and ...TYPE cannot be used for smartctl parameters
| Reported by: | Christian Franke | Owned by: | Christian Franke |
|---|---|---|---|
| Priority: | major | Milestone: | Release 5.40 |
| Component: | smartd | Version: | 5.39.1 |
| Keywords: | Cc: |
Description
When running scripts via smartd -M exec directive, the environment variables SMARTD_DEVICE and SMARTD_DEVICETYPE should be set such that the following command works:
smartctl ... -d $SMARTD_DEVICETYPE $SMARTD_DEVICE
Such a command is already used in Example1 and Example2.
This does not always work:
SMARTD_DEVICE may contain extra info about the device (see Ubuntu Bug 491324, comment 8). It should be set to the plain device name instead.
SMARTD_DEVICETYPE may not be set to the correct type if the type was autodetected.
Change History (2)
comment:1 by , 15 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → accepted |
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.

r3186.