Is it possible to send alert notifications to a Slack channel?
Q: I need to post a message to a Slack channel every time alert is executed. How can I do that?
A: Please follow the below guide:
1. Create Slack API Webhook Integration
Create Incoming Webhook integration for your team as described on corresponding Slack API page. There is a link on that page (underlined below) that redirects you to the integration page for your team, assuming you are logged in and can manage the team:2. Create Send HTTP(S) request action
Now open IPNetwork Monitor GUI client and create new “Send HTTP(S) request” action (click “Alerting > Alerts”, select “Simple Actions” tab):{ "username": "IPNetwork $NewState alert", "icon_url": "//cdn.ipnetwork-monitor.com/images/icons/40x40/$NewState.png", "text": "<$MonitorReportUrl|$MonitorName> on <$HostReportUrl|$HostName> - $EventShortDescription $Duration" }Now add newly created Simple Action to an existing alert, for example to “E-mail to Administrator + Popup” alert used by the Default Alerting Rule. Click “Alerts”, select “E-mail to Administrator + Popup” (or any other alert of your choice) and click “Edit”. Use “Add” drop-down in a newly opened alert editor to add “Post to Slack” simple action:
3. Test Slack notifications
Now that “Post to Slack” action has been added to alerts, try putting a monitor to Down state and back (by altering its “State conditions” and polling the monitor), or use “Alerting > Testing” tab to simulate alert execution.Please note that alerts are grouped by state and identified by IPNetwork state icons. Monitor and host names are linked to corresponding daily reports. You can further customize the messages posted to Slack channel using other template variables in “text” property of the “POST Data” contents (see step 2. above).