Coder Social home page Coder Social logo

lazykuma's Introduction

基于Flask+Bootstrap构建的运维平台

1. 介绍

目前主要做了用户管理系统,资产管理系统,监控报表展示,zabbix二次开发等功能,其他功能逐渐添加。 前端使用了htmlbootstrap模板及jquery插件,绘图则通过Echarts实现。 后端使用Flask处理http请求,python进行逻辑处理,对mysql进行增删查改操作。 zabbix展示使用restful api获取监控数据实时展示

对于功能设计可以参考LazyKuma.xmind脑图。

2. 运行环境的准备

  • python2.7 平台

运行如下命令安装环境

  • pip install flask
  • pip install DBUtils
  • yum instll mysql-devel
  • yum install python-devel
  • pip install MySQL-python

3. 数据库配置

  • 数据库的配置文件在conf/config.py根据你的环境相应修改即可。
  • 提供了2个sql文件,分别是LazyKuma.sql,LazyKuma_data.sql,一个是不带表数据,另外一个带表数据,建议运行第二个sql脚本,初始化后使用用户William/123可登入。

4. zabbix配置

  • 安装zabbix 3.0,其他版本也可以,未做试验
  • conf/config.py根据你的环境相应修改
  • zabbix控制台中,你还要提供一个主机名为Zabbix server的host主机
  • 默认只做了system.cpu.util[,idle]这个key的数据展示
  • 展示界面设置了30秒获取一次数据,观察时请耐心等待一下

5. 运行起来

# python run.py

6. 访问实例

通过http://ip:9999访问登录即可 下面是一些页面示例:

  • 展示界面
  • 用户界面
  • 资产界面
  • zabbix监控界面

lazykuma's People

Contributors

meedrop avatar

Watchers

James Cloos 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.