项目作者: lrstanley

项目描述 :
Server monitoring and reporting bot for Slack
高级语言: Go
项目地址: git://github.com/lrstanley/ponger.git
创建时间: 2018-03-03T05:11:24Z
项目社区:https://github.com/lrstanley/ponger

开源协议:MIT License

下载


ponger — Server monitoring and reporting bot for Slack



Build Status
IRC Chat

Table of Contents

Installation

Check out the releases
page for prebuilt versions. Below are example commands of how you would install
the utility.

Ubuntu/Debian

  1. $ wget https://liam.sh/ghr/ponger_0.1.0_linux_amd64.deb
  2. $ dpkg -i ponger_0.1.0_linux_amd64.deb

CentOS/Redhat

  1. $ yum localinstall https://liam.sh/ghr/ponger_0.1.0_linux_amd64.rpm

Manual Install

  1. $ wget https://liam.sh/ghr/ponger_0.1.0_linux_amd64.tar.gz
  2. $ tar -C /usr/bin/ -xzvf ponger_0.1.0_linux_amd64.tar.gz ponger
  3. $ chmod +x /usr/bin/ponger

Source

Note that you must have Go installed and
a fully working $GOPATH setup.

  1. $ go get -d -u github.com/lrstanley/ponger
  2. $ cd $GOPATH/src/github.com/lrstanley/ponger
  3. $ make
  4. $ ./ponger --help

Usage

  1. $ ponger --help
  2. Usage:
  3. ponger [OPTIONS]
  4. Application Options:
  5. -c, --config= configuration file location (default: config.toml)
  6. -d, --debug enables slack api debugging
  7. --user-db= path to user settings database file (default: user_settings.db)
  8. --http= address/port to bind to (default: :8080)
  9. --http-prefix= prefix uri for the http server (e.g. if behind a proxy)
  10. -p, --ping= test the ping functionality builtin to ponger
  11. Help Options:
  12. -h, --help Show this help message

Example

  1. $ ponger -c yourconf.toml -d --http "localhost:8080"
  2. $ ponger -c yourconf.toml -p "8.8.8.8"

Contributing

Please review the CONTRIBUTING doc for submitting issues/a guide
on submitting pull requests and helping out.

License

  1. LICENSE: The MIT License (MIT)
  2. Copyright (c) 2017 Liam Stanley <me@liamstanley.io>
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.