/scouter-plugin-server-alert-line

(Deprecated. use scouter-plugin-server-alert-line-notify) Scouter plugin for alerting to Line messenger.

Primary LanguageJavaApache License 2.0Apache-2.0

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