Jump to content
  • [7.0.0-beta.1] Running notify from command line does not trigger Discord notification


    Wolfy
    • Minor

    I'm trying to set up a notification on my backup server for when the backup finishes:

    /usr/local/emhttp/webGui/scripts/notify -e "Rclone" -s "Backup Complete" -d "$(grep ETA rclone-test.log | sed 's/B.*/B/g')" -m "$(sed 's/$/\<br\>/' rclone-test.log|tr -d '\n')" -i "normal"

    But for whatever reason, this does not seem to trigger a discord notification. It works fine on my main server running 6.12.10, although when I do that I get an error (even though it does create the discord notification):

    /boot/config/plugins/dynamix/notifications/agents/._Discord.sh: /boot/config/plugins/dynamix/notifications/agents/._Discord.sh: cannot execute binary file

     

    Edit: I should note that it does work when I do the "test" notification in the gui, so it's not an issue with the webhook url

     

    Edit2: I just tested this with ```/usr/local/emhttp/webGui/scripts/notify -s "TEST"``` and got no output in Discord

     

    Edit3: Did some more testing::

    This outputs no issues to discord:

    EVENT="Rclone" SUBJECT="Backup Complete" DESCRIPTION="$(grep ETA rclone-test.log | sed 's/B.*/B/g'|tr -d '\t')" CONTENT="$(sed 's/$/\<br\>\\n/' rclone-test.log|tr -d '\t')" IMPORTANCE="normal" bash /boot/config/plugins/dynamix/notifications/agents/Discord.sh

    This outputs to the unraid notifications, but not discord:

    EVENT="Rclone" SUBJECT="Backup Complete" DESCRIPTION="$(grep ETA rclone-test.log | sed 's/B.*/B/g'|tr -d '\t')" CONTENT="$(sed 's/$/\<br\>\\n/' rclone-test.log|tr -d '\t')" IMPORTANCE="normal" notify -e "$EVENT" -s "$SUBJECT" -d "$DESCRIPTION" -m "$CONTENT" -i "$IMPORTANCE"

     

    So I think the issue is somewhere inside the notify script that's not calling the discord script.




    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...