Sample Header Ad - 728x90

smartd output to screen, not email

2 votes
2 answers
1005 views
I'm trying to get smartd working; it is determined that messages will be sent via email via 'mail' which I've never used. But I recall that a few years ago I had smartd sending it's warnings directly to the screen via a popup text box. I'm trying to figure out how to do that again. The info for the 'screen' command baffles me. tmux likewise. Or I suppose it could be a notification. When I have a few weeks to study it, I'll get 'mail' working but for now I'd prefer a popup message anyway. ================================================== In 'smartd.conf': DEVICESCAN -a -m -M exec notify -M test ... Ok, added full path, much better: DEVICESCAN -a -m -M exec /bin/notify -M test ... 'notify' runs fine from CLI, is an executable script: /bin/notify-send "$(systemctl status smartd)" ... but although: systemctl restart smartd; systemctl status smartd ... reports no errors, I get no 'test' result. BTW, so far no results at all using those variables you mentioned. ... $ smartd ... shows two notifications, one for each of my two disks! So why does 'systemctl restart smartd' show nothing?
Asked by Ray Andrews (2615 rep)
Oct 17, 2022, 01:56 PM
Last activity: Oct 17, 2022, 10:08 PM