Jump to content

Influencer

Members
  • Posts

    2,067
  • Joined

  • Last visited

Posts posted by Influencer

  1. At the bottom of the Main tab and in the parity check history, I think it would be helpful to show if it was correcting/non-correcting.

    I can be scatterbrained at times and for instance a month ago I had a few parity errors come up after a power outage. So I ran a correcting parity check. All is well.

     

    Tonight, a month later, I just happen to glance and see "Last check completed on xx/xx/xx, finding 518 errors." Look at history, two checks ran within a couple days, both finding 518 errors. Took me a minute to remember running the correcting parity check. After running the correcting check I had neglected to run another check to ensure 0 errors.

     

    Long story short, would be nice to see if a check was correcting or not so if something like that happens again its easy to know whether a correcting or non-correcting check should be ran.

  2. I recently had a need/want to have the system send an email to my wife's email address when her SD cards were finished backing up to the server. I use Unassigned Devices to fire off a script when she inserts the card into the server that backs up the card to a server share. But she wouldn't know when it was done unless I had her email address in the notification settings.

     

    She doesn't care to receive the usual system notifications such as parity checks, temp warnings, etc. And I don't care to receive the notifications when her card is done backing up. But unless I interacted with ssmtp directly, I didn't have much choice.

     

    So I modified the Notify script to allow a little more flexibility, posting here in case it helps anyone else. Really simple change that doesn't affect current functionality, maybe the update can be included in the next release of unraid?

     

    List of changes:

    Line 22: Updated example usage

    Line 30: Explanation of option

    Line 50: Added recipients to function parameters

    Lines 54-57: If -r flag was used and an email address was provided, use that. If not, use the default email list from the notification settings

    Line 167: Add 'r' option

    Lines 186-188: Add case for 'r' option

    Line 203: pass in list of recipients to generate_email function

     

    So if my notification settings are set to send the emails to [email protected], in the backup script when I fire off a notification I pass in '-r "[email protected]"' which now overrides the default email in the notification settings and only sends it to her.

     

    Currently of course, you would need to add a line in your go file or if you are using the user scripts plugin you could add it there as well and set it to run at array start. The notify script resides at '/usr/local/emhttp/webGui/scripts/notify'

     

    If you had the new notify script saved to /boot/scripts/ you would add this to the go file (or user script)
     

    cp /boot/scripts/notify /usr/local/emhttp/webGui/scripts/notify

     

    notify

  3. I would like to +1 this and also, in keeping with the same request, make the types of notifications more granular as well.

     

    What I'm thinking is I'd like for unraid to be able to notify different users of events that may be of interest to them.

     

    For instance, my wife backs up her memory cards to the server after each photo shoot. I currently use Unassigned Devices to automate the backing up process for her. But my server doesn't have a speaker so I can't have it beep for her to know its done. Plus it can take some time to back up the photo's so she isn't always near the server to hear it. So currently I have the email notifications setup and the script sends out a notification, which works.

     

    The issue here, which is more of a minor annoyance, is any email listed in the notifications will receive that email. I would like for only her to receive the email. I think this could also be expanded for other things. Another example could be if the server is recording a tv show, you could setup a post recording script that sends a notification/email to interested parties that something was just recorded.

    So two ways I was thinking this could work:

    1) Adding custom events with their own recipient lists, the main email notification settings could keep the recipients list that is there which could act as a default if no recipients were added for the custom events. This would require a few changes to how the notify script works, I believe mainly just checking if the event has its own recipients and using that instead of default.

     

    2) Modify the notify script to add a recipients argument that when present overrides the default list. Could also add a flag that lets it ignore the dashboard notifications as well.

     

    Either of these would open up the capability of the built-in notification system to be used by other applications and scripts that users may run.

  4. I tried to search through previous requests and didn't find anything similar. Also not sure if this is an issue most other users run across or if its a special use-case scenario.

     

    When the amount of docker containers start to add up it creates a long page of containers. I was wondering if it was possible to add pagination to the containers page to keep things tidy and reduce the visual clutter.

×
×
  • Create New...