Skip to content

Notify_mattermost

lead2gold edited this page Nov 30, 2017 · 12 revisions

Mattermost Notifications

  • Source: https://mattermost.com/
  • Icon Support: Yes
  • Message Format: Text
  • Message Limit: 4000 Characters per message

To use this plugin, you need to first set yourself up with http://mattermost.com. Download their software and set it up. The setup is based on Incoming Web Hooks requiring you to generate your own WebHook ID.

Syntax

Valid syntaxes are as follows:

  • mmost:://{hostname}/{webhook_id}
  • mmost:://{hostname}:{port}/{webhook_id}
  • mmosts:://{hostname}/{webhook_id}
  • mmosts:://{hostname}:{port}/{webhook_id}

Secure connections (via https) should be referenced using mmosts:// where as insecure connections (via http) should be referenced via mmost://.

Parameter Breakdown

Variable Required Description
hostname Yes The server Mattermost is listening on.
webhook_id Yes The WebHook ID you would have gotten after setting up the Mattermost server
port No The server port Mattermost is listening on. By default the port is 8065.

Example

Send a secure Mattermost notification to our server

# Assuming our {hostname} is mattermost.server.local
# Assuming our {webhook_id} is 1234ABCD5678

notify mmosts://mattermost.server.local/1234ABCD5678
Clone this wiki locally