kinghows / Linux_Report

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux_Report

Linux Report is a tool to help trouble shoot application base on linux.

python3.6.8

pip3 install prettytable

Edit application commands in linux_report.ini

A few sample Linux commands have been written in linux_report.ini,You can write commands to monitor business systems.

linux_report.txt & linux_report.html is execution result demo.

example:

txt example

html example

execute:

python3 linux_report.py

python3 linux_report.py -p linux_report.ini

python3 linux_report.py -p linux_60s.ini (Brendan Gregg linux 60s )

python3 linux_report.py -p linux_report.ini -s txt >linux_report.txt

python3 linux_report.py -p linux_report.ini -s html >linux_report.html

send email:

python3 SendEmail3.py -p emailset.ini -f linux_report.txt

use crontab regularly perform linux_report.sh,auto generate report,and send email.

Enjoy it!

好用的DBA系列,喜欢的打颗星:

About


Languages

Language:HTML 75.3%Language:Python 23.9%Language:Shell 0.8%