GithubHelp home page GithubHelp logo

zabbix-aliyun-monitor's Introduction

zabbix-aliyun-monitor

Aliyun service status monitor with zabbix

zabbix通过阿里云api 自动发现、监控阿里云产品性能指标,目前支持Redis和RDS for MySQL

由于有重试机制,请修改zabbix server和agent配置中的Timeout参数为10秒以上

环境要求

python = 2.7+ 或 python3.6+ 其他版本未测试

安装依赖包

进入到项目目录中,如Redis目录,执行

# python2
/usr/bin/env pip2 -r requirements.txt
# python3
/usr/bin/env pip3 -r requirements.txt

目录说明

zabbix-aliyun-monitor
  |_ Account    账户监控程序,监控阿里云账户余额和包年包月实例有效期
  |_ MongoDB    阿里云MongoDB实例监控
  |_ Notice     阿里云短信报警程序
  |_ RDS        阿里云RDS-MySQL实例监控
  |_ Redis      阿里云Redis实例监控

使用方法

  1. 从阿里云控制台获取 AccessKey ,并修改脚本中的 API_KeyAPI_Secret
  2. 修改区域 RegionId
  3. 将check和discovery两个脚本放置于以下目录
    cp check_XX.py discovery_XX.py /etc/zabbix/script
  4. 将zabbix客户端文件放置到/etc/zabbix/zabbix_agentd.d/,并修改其中的python版本信息(默认python3)
  5. 重启zabbix-agent
  6. zabbix控制台导入模板,并关联主机

zabbix-aliyun-monitor's People

Contributors

huyx1501 avatar

Stargazers

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