Giter Club home page Giter Club logo

system_report's Introduction

system_report

Wrap pt-stalk to collect forensic data about MySQL when problems occur

how to use

The run-pt-stalk wrap the pt-stalk script, run with:

git clone https://github.com/arstercz/system_report.git
cd system_report
./run-pt-stalk interface mysql_port

you can change user and password in run-pt-stalk file, and the value shoule be in base64 format:

32   "[client]" \
33   "user=$(echo -n eHh4eHh4 | base64 -d)" \
34   "password=$(echo -n eHh4eHh4 | base64 -d)" \

how to send mail when problems occur

Everyone can change for following code in pt-stalk script to send mail:

1319             echo "$msg on $(hostname)" \
1320             | mail -r '[email protected]' -S smtp='127.0.0.1' -s "Collect triggered on $(hostname)" \
1321               "$OPT_NOTIFY_BY_EMAIL"

pt-stalk use mail command, we can change the sender and smtp server by -r and -S options.

plugin

pt-stalk support the plugin so that we can change the problems occur's conditions. Example in the plugin dirs is to summary the cpu by the all MySQL process used.

all self-defined function should be named trg_plugin.

pt-stalk

We had fixed the following bugs:

#1557877

#1644694

#976179

#1083488

and add the following features:

1. capture traffic by use tcpdump;
2. output numa information;
3. record mysql process oom_score

system_report's People

Contributors

arstercz avatar

Stargazers

RZ avatar dikang123 avatar

Watchers

 avatar

Forkers

jzoe dikang123

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.