Git Product home page Git Product logo

zabbix-rds-monitor's Introduction

zabbix-RDS-monitor

Aliyun RDS-mysql status monitor with zabbix

zabbix通过阿里云api 自动发现、监控阿里云RDS-Mysql数据库  
本版本数据的图表展示,是以监控项进行分组,后期会再发布以rds实例分组的版本。

使用方法

注意事项

  1. 脚本会收集RDS别名,
  2. 不要默认别名
  3. 不要使用中文别名(zabbix不识别)
  4. 切记aliyun-python-sdk-core==2.3.5,新版本的sdk有bug

环境要求

python = 2.7

模块安装

/usr/bin/env pip2.7 install aliyun-python-sdk-core==2.3.5 aliyun-python-sdk-rds==2.1.4 datetime

使用方法

  1. 从阿里云控制台获取 AccessKey ,并修改脚本中的 IDSecret
  2. 修改区域 RegionId
  3. 将两个脚本放置于以下目录
/etc/zabbix/script
chmod +x /etc/zabbix/script/*
  1. 修改zabbix-agentd.conf,添加以下内容
#rds
UserParameter=rds.discovery,/usr/bin/env python2.7 /etc/zabbix/script/discovery_rds.py
UserParameter=check.rds[*],/usr/bin/env python2.7 /etc/zabbix/script/check_rds.py $1 $2 $3
  1. 重启zabbix-agent
  2. zabbix控制台导入模板,并关联主机

zabbix-rds-monitor's People

Contributors

x-mars avatar huyx1501 avatar senseab 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.