Coder Social home page Coder Social logo

monitor-linux's Introduction

monitor-linux(监控linux)

设计需求:一到周末,公司总是会让我们人肉监控服务器状态(因为技术还没到互联网层公司的技术,没有自动化---例如工具Ansible之类的,ε=(´ο`*)))唉) 所以,我觉得这种东西如果可以实现一个远程自动化的监控工具是再好不过了,周末可以省下大把时间去浪:smile:~

Environment(环境)

本项目为python编写的项目。

  • python3.6+

用到的库:

  • paramiko (linux ssh库)
  • smtplib (邮件库)
  • APScheduler (定时任务库)

项目目录结构

monitor-linux(:smiling_imp:)

|--config
    |--gol.py               (全局变量字典)
    |--init_configs.py      (读取ini初始化配置)
    |--linux_config.ini     (linux服务器配置文件)
    |--mail_settings.ini    (邮箱设置配置文件)
    |--time_config.ini      (cron定时设置配置文件)
|--mail
    |--send_mails.py        (发送邮件)
|--monitor
    |--monitor.py           (监控linux模块,连接linux服务器)
|--utils
    |--util.py              (工具类)
|--run.py                   (程序入口)

相关文章链接

慕课网首发手记:http://www.imooc.com/article/251463

自带BGM的博客:https://blog.csdn.net/s740556472/article/details/82890586

初学者有学python的可以关注公众号哟!

migezatan

monitor-linux's People

Contributors

unlimitbladeworks 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.