Hi,
Has anyone managed to make use of slack bot for thedude notifications?
I saw that someone made a wiki for Telegram. Hope u guys can help me with the slack support
/tool fetch mode=https url="https://SLACK.com/hooks/5eu1a1gkypnypbyseqzsq1ao4w" http-method=post http-data="payload={\"text\": \"Test\"}"
Simply make a new notification, choose this type, enter the Fetch command (first test it in RouterOS), then use this notification for specific events (like Unstable->Down event etc)Execute on server - Executes ROS script on The Dude server host when notification is triggered. In "Command:" field you need to write script in RouterOS scripting syntax.
/tool fetch mode=https url="https://test.test.com/hooks/suchhookmuchwow" http-method=post http-data="payload={\"text\": \"[Device.FirstAddress] - [Device.Status]\"}"
/tool fetch mode=https url="https://hooks.slack.com/services/TEEEEEEEE/BEEEEEEEE/EEEEEEEEEEEEEEEEEEEEEEEE" http-method=post http-data="payload={\"attachments\": [ { \"title\": \"Dude Notification!\", \"text\": \"[Device.Name] ([Device.FirstAddress]) is [Device.Status]\", \"color\": \"danger\" } ] }"
/tool fetch mode=https url="https://hooks.slack.com/services/TEEEEEEEE/BEEEEEEEE/EEEEEEEEEEEEEEEEEEEEEEEE" http-method=post http-data="payload={\"attachments\": [ { \"title\": \"Dude Notification!\", \"text\": \"[Device.Name] ([Device.FirstAddress]) is [Device.Status]\", \"color\": \"good\" } ] }"