Giter Club home page Giter Club logo

zyzabbix's Introduction

从事Zabbix课程教学快两年了,给上千名学生讲解过Zabbix的使用,对于熟练使用Zabbix网页的操作人来说,Zabbix 网页添加监控很简单。但是对于初学者来说,Zabbix网页操作比较繁琐,添加一个主机需要很多步骤,添加完后还要等很长时间才能确定是否能监控上,浪费时间,发现监控不了,又不能很快的排查故障。

设计功能

  1. Zabbix网页默认添加新的主机只能等待网页变绿(能够监控)或变红(不能监控),浪费时间。本产品第一个功能,主动检查是否能够获取客户端主机名,获取不到数据则检查客户端配置文件。
  2. 通过上面的功能获取到主机名,并结合用户填入的其他数据调用Zabbix API添加主机。
  3. 通过web管理本平台和Zabbix后台的会话保持。
  4. 左侧是控制面板,右侧是具体内容,使用ajax动态加载右侧页面,这样提高页面加载速度,像共用的js/css静态资源就不用重复向服务器建立连接。

代码结构

ZyZabbix
	ZyZabbix           核心配置目录
	  |--settings.py   Django主配置文件
	  |--urls.py       url规则
	  |--zabbix_get.py 获取zabbix相关信息
	  |--pyzabbix.py   调用Zabbix API
	  |--zabbix_info.conf   包含Zabbix的账号,密码等信息的配置文件
	  |--zbconfig.py   操作zabbix_info.conf配置文件
	hostmanager        功能实现app
	  |--views.py      业务逻辑处理:首页/添加主机
	statics            静态资源目录
	  |--css           样式
	  |--fonts         字体
	  |--images        图片
	  |--js            引入的js
	templates          网页模板目录
	  |--hostadd.html  添加用户网页
	  |--index.html    首页
	  |--settings.html Zabbix连接配置页面
	manage.py

安装环境

  1. Python3
  2. Django 1.10.4
  3. 第三方模块requests

产品功能展示

  1. 主机添加页面

image

  1. 配置管理页面

image

zyzabbix's People

Contributors

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