This answer is about notification.
As far I know the modern Ubuntu includes
$ systemctl status smartd.service
* smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon
Loaded: loaded (/lib/systemd/system/smartd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-07-31 17:27:05 MSK; 2 days ago
Main PID: 1044 (smartd)
`-1044 /usr/sbin/smartd -n
Aug 02 17:57:05 user-pc smartd: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 60 to 58
There is a GUI notifier dependent on
smartmontools. It is named
smart-notifier. Below is its description:
Description-en: graphical hard disk health status notifier
A graphical notifier for smartmontools which attempts to show messages from
the smartd disk monitoring daemon to the user. Currently only for gtk.
man smart-notifier :
This manual page documents briefly the smart-notifier.
smart-notifier is a dbus service/client pair. If run without options, it starts a
dbus service and listens formessages send by the client (normally started from a script in
/etc/smartd/run.d). This messages are then displayed on the screen of the user running the service. This program is designed to be added to the session of the user.
It should inform you about attribute changes. But some scripting may be needed.