Jump to content

ygrichman

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by ygrichman

  1. I've worked around the issue manually, I'll post it here in case anyone else has the same issue. 

    Make sure the Slack notification service is enabled. Open the terminal and enter this:

    cd /boot/config/plugins/dynamix/notifications/agents
    sudo nano Slack.sh

    Delete the script that is already there and replace it with the one below. Remember to add your Discord Webhook URL (don't add /slack to the end) and modify the message format if you want.

    #!/bin/bash
    ############
    #Insert Your Discord Webhook URL (Don't add /slack to the end)
    WEBH_URL=""
    
    #Enter Your Messaging Format (Look at Unraid GUI for the names of the available variables to use here)
    #(Also Supports Markdown formatting such as the **BOLD** markup I use in below example)
    MESSAGE="**$SUBJECT**\n$DESCRIPTION\n$CONTENT"
    ############
    curl -k -X POST --header 'Content-Type: application/json' -d "{\"content\": \"$MESSAGE\"}" $WEBH_URL 2>&1

    The default message format I've used in the script will look like this in Discord:

    1826542209_UnraidDiscordNotificationExample.png.86e4a0d3f7c059deedab8cb074e77b65.png

     

    From this point on do not edit the Slack settings in Unraid's GUI as it will most likely overwrite the modifications you've made. You can still use the Test button.

    Hope this helps, feel free to ask if you need any help with this.

    • Like 1
×
×
  • Create New...