Giter Club home page Giter Club logo

batch_url_alert's Introduction

支持批量自定义的URL探测报警及URL回调

  1. vim setting.py
URLS_TO_CHECK = (
        ('http://localhost:8080/', 200),
        )


# 超时
TIMEOUT = 5

# 间隔时间
CHECK_INTERVAL = 3

#报警的相关模块
ALERT_BACKENDS = ('url_monitor.backend.mail.MailAlert',)

#回调的URl
ALERT_CALLBACK = ('http://127.0.0.1/url/error_api')

#show web ui ip:port
WEBUI = '127.0.0.1:8888'

# 你的邮箱
EMAIL_HOST = 'smtp.163.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = '[email protected]'
DEFAULT_FROM_EMAIL=EMAIL_HOST_USER
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = True

# 收到的告警邮箱
RECIPIENTS = ['[email protected]']

  1. python Urlmonitor.py
  2. open mailindex to check alert mail

TODO:

websocket实时页面 自定义其他的类型的探测

batch_url_alert's People

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.