Community discussions

MikroTik App
 
warfy
just joined
Topic Author
Posts: 4
Joined: Fri Aug 19, 2022 7:20 am

Slack Notification Example

Fri May 19, 2023 1:53 am

Hi,

I did a basic slack webhook, which works ok. But I wanted to start a thread because I feel like this may be useful to someone out there - but also I want to make it more useful too, so will be asking for advice as well.

/tool fetch mode=https url="https://hooks.slack.com/services/TEAMID/CHANNELID/BOTID" http-method=post http-data="{\"text\": \":icon: Service ([Probe.Name]) on ([Device.Name]) is now **([Service.Status])**\", \"channel\": \"sandbox\", \"username\": \"dude\"}" http-header-field="content-type: application/json"

I was hoping to just have one notification, but display a different icon in the message to slack based on the up / down status. Is there a way to do this in the notification area?

Who is online

Users browsing this forum: No registered users and 20 guests