项目作者: mohtork

项目描述 :
Monitor MySQL replication
高级语言: Python
项目地址: git://github.com/mohtork/mysql-replication-monitor.git
创建时间: 2020-02-02T17:25:59Z
项目社区:https://github.com/mohtork/mysql-replication-monitor

开源协议:Apache License 2.0

下载


MySQL Replication Monitor

Monitor MySQL replication and send alerts to slack

Usage

Clone the repository:

  1. $ git clone https://github.com/mohtork/mysql-replication-monitor.git && cd mysql-replication-monitor

Install requirments:

  1. $ pip install -r requirments

Edit setup.ini:

  1. $ add mysql & slack info in conf/setup.ini file

Add cronjob:

  1. $ add a cronjob to excute the script

Inputs

Inputs Description
mysql_host It could be hostname or IP
mysql_username MySQL username
mysql_password MySQL password
slack_webhook_token Slack webhook token
slack_channel Slack channel that the script will send alert to
slack_username Slack username who will post the alert message