mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added docs for slack transport
This commit is contained in:
@ -11,6 +11,7 @@ Table of Content:
|
||||
- [API](#transports-api)
|
||||
- [Nagios-Compatible](#transports-nagios)
|
||||
- [IRC](#transports-irc)
|
||||
- [Slack](#transports-slack)
|
||||
|
||||
# <a name="about">About</a>
|
||||
|
||||
@ -170,3 +171,13 @@ Configuration of the LibreNMS IRC-Bot is described [here](https://github.com/lib
|
||||
$config['alert']['transports']['irc'] = true;
|
||||
```
|
||||
|
||||
## <a name="transports-slack">Slack</a>
|
||||
|
||||
The Slack transport will POST the alert message to your Slack Incoming WebHook, you are able to specify multiple webhooks along with the relevant options to go with it. All options are optional, the only required value is for url, without this then no call to Slack will be made. Below is an example of how to send alerts to two channels with different customised options:
|
||||
|
||||
```php
|
||||
$config['alert']['transports']['slack']['post'][] = array('url' => "https://hooks.slack.com/services/A12B34CDE/F56GH78JK/L901LmNopqrSTUVw2w3XYZAB4C", 'channel' => '#Alerting');
|
||||
|
||||
$config['alert']['transports']['slack']['post'][] = array('url' => "https://hooks.slack.com/services/A12B34CDE/F56GH78JK/L901LmNopqrSTUVw2w3XYZAB4C", 'channel' => '@john', 'username' => 'LibreNMS', 'icon_emoji' => ':ghost:');
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user