Guido Berhoerster wrote:
How about the following default configuration:
/etc/smartd.conf: ----8<---- # send mail to root and execute scripts in /etc/smartd_warning.d DEVICESCAN -d removable -m root,@ALL -M exec /etc/smartd_warning.sh ---->8----
/etc/smartd_warning.d/wall.sh: ----8<---- #! /bin/sh
# Warn all users of a problem wall <<EOF Problem detected with disk: $SMARTD_DEVICESTRING
$SMARTD_MESSAGE EOF ---->8----
Yes, something like that looks good. Thinking if somebody still reads mails to root...
But it is a bit sub-optimal, as it does not allow internationalization.
True, but I guess it is not much worse than sending untranslated mails to root. For translated desktop notifications it'd have to be implemented the other way around, i.e. have a per-user daemon which uses some form of IPC like DBus to listen to standardized smartd messages which can the be presented in a translated form. That also won't reach users logged in on a console or via ssh.
There are desktops with more users logged, each with a different locale. It complicates such things a bit. Desktop application has to translate them. But it is hard for already composed messages with variable parts. Note that similar problem was successfully solved in sane project in past. Well, this could be a longer time task. In the first step, we need to deliver messages at least in English. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +49 911 7405384547 190 00 Praha 9 fax: +420 284 084 001 Czech Republic http://www.suse.cz/ PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org