Code Monkey home page Code Monkey logo

scouter-plugin-server-alert-line's Introduction

scouter-plugin-server-alert-line

Englsh Korean

Deprecated. use scouter-plugin-server-alert-line-notify instead

Scouter server plugin to send a alert via line

  • This plug-in sends alert messages generated from the server to the line messenger specific group or chat room.
  • Currently supported types of Alert are as follows
    • All alert occurred from agents.
      • on exceeding CPU threshold of Host agent(warning / fatal)
      • on exceeding Memory threshold of Host agent (warning / fatal)
      • on exceeding Disk usage threshold of Host agent (warning / fatal)
      • agent's connection
      • agent's disconnection
      • agent's reconnection
      • on exceeding service response time
      • ...

Properties (conf/scouter.conf)

  • ext_plugin_line_send_alert : use alert to a line messenger feature or not (true / false) - default false

  • ext_plugin_line_debug : debug logging option - default false

  • ext_plugin_line_level : alert level to send (0 : INFO, 1 : WARN, 2 : ERROR, 3 : FATAL) - default 0

  • ext_plugin_line_access_token : Line channel access token

  • ext_plugin_line_group_id : group id or chat room id (It should be gotten from line webhook request)

  • Example

# External Interface (Line)
ext_plugin_line_send_alert=true
ext_plugin_line_debug=false
ext_plugin_line_level=0
ext_plugin_line_access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
ext_plugin_line_group_id=XXXXXXXXXXXXXXXXXXXXXXXXXXXX

Dependencies

  • Project
    • scouter.common
    • scouter.server
  • Library
    • commons-codec-1.9.jar
    • commons-logging-1.2.jar
    • gson-2.6.2.jar
    • httpclient-4.5.2.jar
    • httpcore-4.4.4.jar

Build & Deploy

  • mvn clean package

  • Deploy

    • copy scouter-plugin-server-alert-line-xxx.jar and all dependent libraries(exclude scouter.server and scouter.commong) to lib directory of scouter server home.

Appendix

Step by Step about notification to Line messenger

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.