@maxhq Thanks, this is a great find / contribution, and given that once email notifications are enabled all email to root is also forwarded to the configured email one can also get smartmontools warnings by adding config entries (via the GUI) such as those those indicated in this post.
example email notifications I’ve received include:-
Device: /dev/sde [SAT], 2 Currently unreadable (pending) sectors
Device: /dev/sdb [SAT], 940 Currently unreadable (pending) sectors
Device: /dev/sdb [SAT], FAILED SMART self-check. BACK UP DATA NOW!
Device: /dev/sdb [SAT], 4 Offline uncorrectable sectors
The above are from a variety of fairly sickly drives I keep around to test such things.
We also have NUT events email notifications
ups@nutserver tripped no-comms timer or event filter
ups@nutserver tripped comms-ok timer or event filter
ups@netserver tripped comms-bad timer or event filter
ups@localhost tripped on-batt timer or event filter
ups@localhost tripped on-mains timer or event filter
It would be great to integrate your suggestion / config of logcheck and ease the config of smartmontools in future Rockstor versions, I’ll leave it to @suman to formalize that more in the issues as I know there are plans to establish a more robust GUI notification system that would presumably tie directly into the email one we already have. That way we could channel everything though that system and have better control.
Could you give us an example of the emails you have received from your logcheck install and config? Thanks. Notifications is definitely an area that can do with improvement.