Opened 4 years ago

Closed 4 years ago

#1309 closed enhancement (worksforme)

Smartmontools Audible Warning

Reported by: djevlen Owned by:
Priority: minor Milestone:
Component: smartd Version:
Keywords: Cc:

Description

Hi

How to configure smartmontools to give audible warnings from onboard system speaker when hdd is about to fail or S.M.A.R.T. is logging errors ?

OS : Debian 10 buster

All other forums only discuss how to send email when something is wrong...
Im not interested in emails...Server is at home and so am i... Audible warning will draw my attention must faster.

Is there any chance of implementing such feature ?

Any help would be greatly appreciated.
Thanx

Change History (4)

comment:1 by djevlen, 4 years ago

Component: allsmartctl

comment:2 by Christian Franke, 4 years ago

Component: smartctlsmartd
Priority: criticalminor

A nice to have feature is never "critical" :-)

comment:3 by Christian Franke, 4 years ago

Create a smartd warning script which runs the command(s) of choice, for example the beep command.

Specify the script path in smartd.conf, for example:

DEVICESCAN [...other...options...] -m <nomailer> -M exec /path/to/your/script

Append -M test to test script functionality.

See -M exec on smartd.conf man page for details and the example scripts directory for other scripts.

comment:4 by Christian Franke, 4 years ago

Resolution: worksforme
Status: newclosed

Could be implemented with a custom smartd warning script. See the above comment for details.

Note: See TracTickets for help on using tickets.