Git Product home page Git Product logo

salt-zabbix's Introduction

SaltStack结合Zabbix完成服务自动部署及监控

环境说明

基于`SaltStack`_ ,结合`Zabbix`_ 完成服务自动化部署及监控

本次测试的服务为`Memcached`_ 服务,监控模板采用`zbl/zabbix模板 <http://github.com/zbl/zabbix/>`_ , Zabbix API采用`zapi <https://github.com/baniuyao/ZabbixPythonApi>`_

测试环境:

序号 主机名 IP OS版本 角色 salt版本
1 salt-test-01 172.16.0.111 CentOS 6.4 X86_64 salt master/minion & zabbix server& web 0.15.1
2 salt-test-02 172.16.0.112 CentOS 6.4 X86_64 salt minion & zabbix api操作机 0.15.1
3 salt-test-03 172.16.0.113 CentOS 6.4 X86_64 salt minion & zabbix agent & memcached 0.15.1

salt: salt state

pillar: salt pillar

执行过程

# salt '*' sync_all

# salt '*' state.highstate

# salt 'salt-test-02' state.highstate

当前问题

  1. 当前采用的Zabbix API为1.8 API,不支持2.0中的模板自动导入功能,因此在部署完zabbix server后,安装memcached服务前,需要登录zabbix web导入监控模板
  2. 由于采用salt mine进行角色传递,传递给zabbix api操作机,因此需要执行两次state.highstate,第一次会将角色信息以mine方式传递给salt master,第二次会将角色信息传递给zabbix api操作机

salt-zabbix's People

Contributors

pengyao avatar

Watchers

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