This is a custom Uptime plugin for Slack. The main function of this plugin is to send Uptime notifications (up/down/pause/start/etc.) to Slack through its incoming message API.
- Uptime: https://github.com/fzaninotto/uptime
- Slack: https://slack.com/
To install the plugin, you have to install Uptime first, and then execute the following commands.
$ cd /path/to/your/uptime/installation/folder
$ git clone git@github.com:waltzofpearls/uptime-plugin-slack.git plugins/slack
# Read the next section for plugin configuration first, then properly enable
# and configure the plugin, and then restart Uptime app.
In config file config/production.yaml
, add the following line under plugins
to enable the geckoboard plugin.
- ./plugins/slack
Also add the following geckoboard config to config/production.yaml
.
slack:
webhook: [slack webhook url]
channel: '[slack channel name]' # default '#general'
username: [slack username] # default 'Uptime Alert'
icon_emoji: [emoji icon for [username]] # default ':turtle:'
icon_url: [optional, icon_url for [username]] # default empty, icon_url overrides icon_emoji
event:
up: true
down: true
paused: false
restarted: false
Restart Uptime app after changing the configuration.
The MIT License (MIT)
Copyright (c) 2015 Rollie Ma @ Topbass Labs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.