GithubHelp home page GithubHelp logo

zerolugithub / elastalert-wechat-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anjia0532/elastalert-wechat-plugin

0.0 1.0 0.0 31 KB

elastalert微信企业号报警插件

Home Page: https://anjia0532.github.io/2017/02/16/elastalert-wechat-plugin/

License: Apache License 2.0

Python 68.98% Shell 13.20% Dockerfile 17.82%

elastalert-wechat-plugin's Introduction

elastalert-wechat-plugin

基于ElastAlert的微信企业号报警插件

使用说明

使用说明详见 https://anjia0532.github.io/2017/02/16/elastalert-wechat-plugin/

常见问题

  1. 如果遇到运行一段时间后,报警规则莫名被禁用,则 详见 anjia0532#2

  2. 如果报 SSLError(SSLError("bad handshake: Error([('SSL routines', SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",),) 参见 简书#SSLError (已失效),如果对于安全要求不高的话,可以 修改 wechat_qiye_alert.py#L73wechat_qiye_alert.py#L126加入 verify=False 但是 此为不校验证书,容易导致中间人攻击等问题。具体解决方案自行搜索google python2.7 SNI

使用Docker

ubuntu 16.04 python 2.7.12 正常,如果条件允许,建议使用docker镜像,减少环境差异导致的各种奇葩问题

docker hub repo anjia0532/elastalert-wechat-plugin Automated build Docker Pulls

#默认docker官方库
docker pull anjia0532/elastalert-wechat-plugin

#阿里云镜像库
docker pull registry.cn-hangzhou.aliyuncs.com/shunneng/elastalert-wechat-plugin

环境变量说明

ELASTICSEARCH_HOST: elasticsearch host

ELASTICSEARCH_PORT: elasticsearch port

ELASTICSEARCH_USERNAME: elasticsearch用户名

ELASTICSEARCH_PASSWORD: elasticsearch密码

SET_CONTAINER_TIMEZONE: 是否要设置时区,true|false

CONTAINER_TIMEZONE: 时区,默认北京时间东八区 Asia/Shanghai

elastalert-wechat-plugin's People

Contributors

anjia0532 avatar xiaoeight avatar

Watchers

 avatar

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.