I am trying to set up an alert that posts to slack if an interface have utilization above 50%. But to try to se what gets posted to slack I configured an action with url and a post with this body:
{
"text": ":large_green_circle: ${N=SwisEntity;M=Node.Caption} - ${N=SwisEntity;M=IfName}",
"response_type": "in_channel",
"channel": "#alerts-test"
}
This works påosting to Slack. But if I insert a variable into the body it looks like this:
{
"text": ":large_green_circle: ${N=SwisEntity;M=Node.Caption} - ${N=SwisEntity;M=IfName} - ${N=SwisEntity;M=InPercentUtil;F=Percent}",
"response_type": "in_channel",
"channel": "#core-alerts-test"
}
This does not work, and I get "Failed to execute HTTP request".
Anyone knows how to setup this correct?