Code Monkey home page Code Monkey logo

ceilozabbix's Introduction

Ceilozabbix

Ceilozabbix是一个将OpenStack中的Ceilometer与Zabbix结合起来提供对OpenStack环境下的所有虚拟机的监控。其中Ceilometer负责提供数据,Zabbix提供友好的监控环境。

我没有将所有的配置文件以及一些与OpenStack耦合教紧的代码列出来,通过主要的zabbix_sender.pycustom_zabbix_sender.py两个文件来描述整个过程的实现,如果明白了其中的过程,定制自己的需求也会变得简单。

使用方法

  1. 你最好在zabbix中创建一个单独分组、模板。
  2. 从Ceilometer的采集项中选出你关心的数据项,将其添加到你的zabbix模板当中,并在zabbix中设置采用主动式采集方式
  3. 在代码或者配置文件中配置你想要的采集项(与在zabbix模板中建立的监控项名字需要相同)
  4. 配置好配置文件,包括zabbix服务器上的一个权限足够的账户以及可能的proxy地址,在/usr/lib/python2.7/site-packages/ceilometer-7.0.4-py2.7.egg-info/entry_points.txt文件中的[ceilometer.dispatcher.meter]下添加相应信息,最后在/etc/ceilometer/ceilometer.conf中添加meter_dispatcher=zabbix,这个zabbix是你在entry_points.txt中添加的诸如zabbix = ceilometer.dispatcher.zabbix_sender:ZabbixDispatcher

杂记

现在的custome_zabbix_sender主要是从Ceilometer暴露出的Restful API来获取,其实也可以直接在代码中向OpenStack的风格一样,构建相应的Agent直接调用到方法。

ceilozabbix's People

Contributors

kneed avatar

Stargazers

 avatar

Watchers

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