workinganna.blogg.se

Slack incoming webhooks tutorial
Slack incoming webhooks tutorial















If(type="threshold" & severity="severe") inputs: timestamp,server,severity,type,name,value,agent,port,url,comment,id description: forward threshold events to Slack This makes it easier to merge additional information before sending on to the chat channel. It will be called with the parameters of each event. Alternatively, you can use the general purpose eventHook script like this:ĮventHookURL=" And then add a new File>REST script called eventHook.js. To modify the scripts you can find them under /usr/local/inmsf/scripts/ and copy to another name not under package control. Follow the instructions to add an Incoming Webhook and use it in global.prefs like this:ĮventHookURL="ROCKET_CHAT_INCOMING_WEBHOOK_HERE" If your team uses Rocket.Chat instead, the steps are similar. Use Slack Webhook URL with Traffic Sentinel event scriptĮdit global.prefs (File>Configure>Edit>Edit Files>global.prefs) and add settings:ĮventHookServer="SENTINEL_SERVER_NAME_OR_IP_HERE"įor example, if your Traffic Sentinel server can be reached at, the settings will look something like this:ĮventHookURL=":///services/TTXXXXX4X/BXXXXMCSH/6tGPXXXXXXXIcRVSJpapjyZR" Now you can use the resulting Webhook URL below.

slack incoming webhooks tutorial slack incoming webhooks tutorial

  • Activate the Incoming Webhook for the app and associate it with the new channel.
  • Visit and click to build a new app, "sentinel-event-app".
  • Sign in to your Slack Workspace and create a new channel, "sentinel-events".
  • #SLACK INCOMING WEBHOOKS TUTORIAL HOW TO#

    How to send Traffic Sentinel events to a chat window. Forwarding Traffic Sentinel Events to a Slack or Rocket.Chat Channel















    Slack incoming webhooks tutorial